1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-30 06:01:03 +01:00
home-manager/tests/modules/programs/lf/no-pv-keybind.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

37 lines
459 B
Nix

let
pvScript = builtins.toFile "pv.sh" "cat $1";
expected = builtins.toFile "settings-expected" ''
set previewer ${pvScript}
# More config...
'';
in
{
programs.lf = {
enable = true;
extraConfig = ''
# More config...
'';
previewer = {
source = pvScript;
};
};
nmt.script = ''
assertFileExists home-files/.config/lf/lfrc
assertFileContent home-files/.config/lf/lfrc ${expected}
'';
}