home-manager/tests/modules/services/flameshot/example-settings.nix

29 lines
484 B
Nix
Raw Normal View History

2021-10-11 19:41:49 +00:00
{ ... }:
{
2023-05-12 22:08:12 +00:00
services.flameshot = {
enable = true;
2021-10-11 19:41:49 +00:00
2023-05-12 22:08:12 +00:00
settings = {
General = {
disabledTrayIcon = true;
showStartupLaunchMessage = false;
2021-10-11 19:41:49 +00:00
};
};
2023-05-12 22:08:12 +00:00
};
2021-10-11 19:41:49 +00:00
2023-05-12 22:08:12 +00:00
test.stubs.flameshot = { };
2021-10-11 19:41:49 +00:00
2023-05-12 22:08:12 +00:00
nmt.script = ''
assertFileContent \
home-files/.config/flameshot/flameshot.ini \
${
builtins.toFile "expected.ini" ''
[General]
disabledTrayIcon=true
showStartupLaunchMessage=false
''
}
'';
2021-10-11 19:41:49 +00:00
}