vifm: add module

This commit is contained in:
aabccd021 2022-09-09 07:42:53 +07:00 committed by Robert Helgesson
parent 342a1d6823
commit 5828309542
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
8 changed files with 88 additions and 1 deletions

View file

@ -0,0 +1,4 @@
{
vifm-example-settings = ./example-settings.nix;
vifm-empty-settings = ./empty-settings.nix;
}

View file

@ -0,0 +1,11 @@
{ ... }:
{
programs.vifm.enable = true;
test.stubs.vifm = { };
nmt.script = ''
assertPathNotExists home-files/.config/vifm
'';
}

View file

@ -0,0 +1,21 @@
{ config, ... }:
{
programs.vifm = {
enable = true;
package = config.lib.test.mkStubPackage { };
extraConfig = ''
mark h ~/
'';
};
nmt.script = ''
assertFileContent \
home-files/.config/vifm/vifmrc \
${
builtins.toFile "vifm-expected.conf" ''
mark h ~/
''
}
'';
}