2023-07-03 20:30:13 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.pqiv = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { name = "pqiv"; };
|
|
|
|
settings = {
|
|
|
|
options = {
|
2024-09-08 17:10:43 +02:00
|
|
|
hide-info-box = true;
|
2023-07-03 20:30:13 +02:00
|
|
|
thumbnail-size = "256x256";
|
|
|
|
};
|
|
|
|
};
|
2024-03-10 10:20:21 +01:00
|
|
|
extraConfig = ''
|
|
|
|
[keybindings]
|
|
|
|
t { montage_mode_enter() }
|
|
|
|
'';
|
2023-07-03 20:30:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/pqivrc
|
|
|
|
assertFileContent home-files/.config/pqivrc ${
|
|
|
|
builtins.toFile "pqiv.expected" ''
|
|
|
|
[options]
|
2024-09-08 17:10:43 +02:00
|
|
|
hide-info-box = 1
|
|
|
|
thumbnail-size = 256x256
|
2024-03-10 10:20:21 +01:00
|
|
|
|
|
|
|
[keybindings]
|
|
|
|
t { montage_mode_enter() }
|
|
|
|
|
2023-07-03 20:30:13 +02:00
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|