pqiv: add module
This commit is contained in:
parent
75cfe974e2
commit
9db5b89f40
6 changed files with 91 additions and 0 deletions
1
tests/modules/programs/pqiv/default.nix
Normal file
1
tests/modules/programs/pqiv/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ pqiv-settings = ./settings.nix; }
|
||||
25
tests/modules/programs/pqiv/settings.nix
Normal file
25
tests/modules/programs/pqiv/settings.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.pqiv = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { name = "pqiv"; };
|
||||
settings = {
|
||||
options = {
|
||||
hide-info-box = 1;
|
||||
thumbnail-size = "256x256";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/pqivrc
|
||||
assertFileContent home-files/.config/pqivrc ${
|
||||
builtins.toFile "pqiv.expected" ''
|
||||
[options]
|
||||
hide-info-box=1
|
||||
thumbnail-size=256x256
|
||||
''
|
||||
}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue