keepassxc: add module
This commit is contained in:
parent
5e6a8203ce
commit
54b494a77f
7 changed files with 110 additions and 0 deletions
13
tests/modules/programs/keepassxc/default-settings.nix
Normal file
13
tests/modules/programs/keepassxc/default-settings.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.keepassxc = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
test.stubs.keepassxc = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/keepassxc/keepassxc.ini
|
||||
'';
|
||||
}
|
||||
4
tests/modules/programs/keepassxc/default.nix
Normal file
4
tests/modules/programs/keepassxc/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
keepassxc-default-settings = ./default-settings.nix;
|
||||
keepassxc-example-settings = ./example-settings.nix;
|
||||
}
|
||||
24
tests/modules/programs/keepassxc/example-settings.nix
Normal file
24
tests/modules/programs/keepassxc/example-settings.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.keepassxc = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Browser.Enabled = true;
|
||||
GUI = {
|
||||
AdvancedSettings = true;
|
||||
ApplicationTheme = "dark";
|
||||
CompactMode = true;
|
||||
HidePasswords = true;
|
||||
};
|
||||
SSHAgent.Enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.keepassxc = { };
|
||||
|
||||
nmt.script = ''
|
||||
configFile=home-files/.config/keepassxc/keepassxc.ini
|
||||
assertFileContent $configFile ${./keepassxc-example-config.ini}
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
[Browser]
|
||||
Enabled=true
|
||||
|
||||
[GUI]
|
||||
AdvancedSettings=true
|
||||
ApplicationTheme=dark
|
||||
CompactMode=true
|
||||
HidePasswords=true
|
||||
|
||||
[SSHAgent]
|
||||
Enabled=true
|
||||
Loading…
Add table
Add a link
Reference in a new issue