keepassxc: add module

This commit is contained in:
d-brasher 2024-07-16 21:34:38 +02:00 committed by Austin Horstman
parent 5e6a8203ce
commit 54b494a77f
7 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{ ... }:
{
programs.keepassxc = {
enable = true;
};
test.stubs.keepassxc = { };
nmt.script = ''
assertPathNotExists home-files/.config/keepassxc/keepassxc.ini
'';
}

View file

@ -0,0 +1,4 @@
{
keepassxc-default-settings = ./default-settings.nix;
keepassxc-example-settings = ./example-settings.nix;
}

View 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}
'';
}

View file

@ -0,0 +1,11 @@
[Browser]
Enabled=true
[GUI]
AdvancedSettings=true
ApplicationTheme=dark
CompactMode=true
HidePasswords=true
[SSHAgent]
Enabled=true