1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-09 10:31:06 +01:00
home-manager/tests/modules/programs/pqiv/settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

31 lines
620 B
Nix

{ config, ... }:
{
programs.pqiv = {
enable = true;
package = config.lib.test.mkStubPackage { name = "pqiv"; };
settings = {
options = {
hide-info-box = true;
thumbnail-size = "256x256";
};
};
extraConfig = ''
[keybindings]
t { montage_mode_enter() }
'';
};
nmt.script = ''
assertFileExists home-files/.config/pqivrc
assertFileContent home-files/.config/pqivrc ${builtins.toFile "pqiv.expected" ''
[options]
hide-info-box = 1
thumbnail-size = 256x256
[keybindings]
t { montage_mode_enter() }
''}
'';
}