flameshot: add settings option
This commit is contained in:
parent
32285d8fe6
commit
0b47ded208
5 changed files with 77 additions and 1 deletions
4
tests/modules/services/flameshot/default.nix
Normal file
4
tests/modules/services/flameshot/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
flameshot-empty-settings = ./empty-settings.nix;
|
||||
flameshot-example-settings = ./example-settings.nix;
|
||||
}
|
||||
13
tests/modules/services/flameshot/empty-settings.nix
Normal file
13
tests/modules/services/flameshot/empty-settings.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
services.flameshot = { enable = true; };
|
||||
|
||||
test.stubs.flameshot = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/flameshot/flameshot.ini
|
||||
'';
|
||||
};
|
||||
}
|
||||
30
tests/modules/services/flameshot/example-settings.nix
Normal file
30
tests/modules/services/flameshot/example-settings.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
services.flameshot = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
General = {
|
||||
disabledTrayIcon = true;
|
||||
showStartupLaunchMessage = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.flameshot = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/flameshot/flameshot.ini \
|
||||
${
|
||||
builtins.toFile "expected.ini" ''
|
||||
[General]
|
||||
disabledTrayIcon=true
|
||||
showStartupLaunchMessage=false
|
||||
''
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue