vifm: add module
This commit is contained in:
parent
342a1d6823
commit
5828309542
8 changed files with 88 additions and 1 deletions
4
tests/modules/programs/vifm/default.nix
Normal file
4
tests/modules/programs/vifm/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
vifm-example-settings = ./example-settings.nix;
|
||||
vifm-empty-settings = ./empty-settings.nix;
|
||||
}
|
||||
11
tests/modules/programs/vifm/empty-settings.nix
Normal file
11
tests/modules/programs/vifm/empty-settings.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.vifm.enable = true;
|
||||
|
||||
test.stubs.vifm = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/vifm
|
||||
'';
|
||||
}
|
||||
21
tests/modules/programs/vifm/example-settings.nix
Normal file
21
tests/modules/programs/vifm/example-settings.nix
Normal 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 ~/
|
||||
''
|
||||
}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue