mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
34 lines
637 B
Nix
34 lines
637 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.pqiv = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { name = "pqiv"; };
|
|
settings = {
|
|
options = {
|
|
hide-info-box = 1;
|
|
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() }
|
|
|
|
''
|
|
}
|
|
'';
|
|
}
|