1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 21:11:08 +01:00
home-manager/tests/modules/programs/helix/only-extraconfig.nix
crasm 39b7903eab
helix: don't ignore extraConfig when no other settings (#7302)
Fix so that you can still generate `programs.helix.extraConfig` without
using `programs.helix.settings`. Useful particularly in the case of
`extraConfig = lib.readFile ./config.toml;`.
2025-06-22 10:03:39 -05:00

16 lines
271 B
Nix

{ config, ... }:
{
programs.helix = {
enable = true;
extraConfig = ''
[editor]
auto-pairs = false
'';
};
nmt.script = ''
assertFileContent \
home-files/.config/helix/config.toml \
${./only-extraconfig-expected.toml}
'';
}