cfcd52ff70
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
42 lines
555 B
Nix
42 lines
555 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
pvScript = builtins.toFile "pv.sh" "cat $1";
|
|
expected = builtins.toFile "settings-expected" ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set previewer ${pvScript}
|
|
|
|
|
|
|
|
# More config...
|
|
|
|
'';
|
|
in {
|
|
config = {
|
|
programs.lf = {
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
# More config...
|
|
'';
|
|
|
|
previewer = { source = pvScript; };
|
|
};
|
|
|
|
test.stubs.lf = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/lf/lfrc
|
|
assertFileContent home-files/.config/lf/lfrc ${expected}
|
|
'';
|
|
};
|
|
}
|