manage keepassxc settings with nix

closes #8
This commit is contained in:
Pim Kunis 2023-09-30 14:33:40 +02:00
parent fa143bf006
commit 15c77485aa
2 changed files with 9 additions and 19 deletions

View file

@ -147,5 +147,5 @@ in
enable = true; enable = true;
}; };
# xdg.configFile."keepassxc/keepassxc.ini".text = pkgs.lib.generators.toINI {} (import ./keepassxc.nix); xdg.configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} (import ./keepassxc.nix);
} }

View file

@ -2,42 +2,32 @@
General = { General = {
ConfigVersion = 2; ConfigVersion = 2;
}; };
Browser = { Browser = {
Enabled = true;
CustomProxyLocation = ""; CustomProxyLocation = "";
};
FdoSecrets = {
Enabled = true; Enabled = true;
ConfirmAccessItem = false;
ConfirmDeleteItem = false;
}; };
GUI = { GUI = {
AdvancedSettings = true;
MinimizeOnClose = true; MinimizeOnClose = true;
MinimizeOnStartup = true; MinimizeOnStartup = true;
ShowExpiredEntriesOnDatabaseUnlock = false;
ShowTrayIcon = true; ShowTrayIcon = true;
TrayIconAppearance = "colorful"; TrayIconAppearance = "monochrome-light";
};
KeeShare = {
Active = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <Active/>\\n</KeeShare>\\n\"";
Foreign = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <Foreign/>\\n</KeeShare>\\n\"";
Own = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <PrivateKey/>\\n <PublicKey/>\\n</KeeShare>\\n\"";
QuietSuccess = true;
}; };
PasswordGenerator = { PasswordGenerator = {
AdditionalChars = ""; AdditionalChars = "";
AdvancedMode = false;
ExcludedChars = ""; ExcludedChars = "";
Length = 40;
SpecialChars = false;
Type = 0;
UpperCase = true;
}; };
SSHAgent = { SSHAgent = {
Enabled = true; Enabled = true;
}; };
Security = { Security = {
ClearClipboardTimeout = 30; ClearClipboardTimeout = 30;
ClearSearch = false; ClearSearch = false;
EnableCopyOnDoubleClick = true;
}; };
} }