1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-09 22:58:43 +02:00
home-manager/tests/modules/programs/pqiv/settings.nix

26 lines
496 B
Nix
Raw Normal View History

2023-07-03 20:30:13 +02:00
{ 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
''
}
'';
}