pqiv: add module

This commit is contained in:
Donovan Glover 2023-07-03 14:30:13 -04:00 committed by Robert Helgesson
parent 75cfe974e2
commit 9db5b89f40
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
6 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1 @@
{ pqiv-settings = ./settings.nix; }

View 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
''
}
'';
}