From 15c77485aa00ace6ff3b0048a6df0f271b001ed5 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 30 Sep 2023 14:33:40 +0200 Subject: [PATCH] manage keepassxc settings with nix closes #8 --- home.nix | 2 +- keepassxc.nix | 26 ++++++++------------------ 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/home.nix b/home.nix index 6008126..0ba0872 100644 --- a/home.nix +++ b/home.nix @@ -147,5 +147,5 @@ in 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); } diff --git a/keepassxc.nix b/keepassxc.nix index 8a01d85..0c574a2 100644 --- a/keepassxc.nix +++ b/keepassxc.nix @@ -2,42 +2,32 @@ General = { ConfigVersion = 2; }; + Browser = { - Enabled = true; CustomProxyLocation = ""; - }; - FdoSecrets = { Enabled = true; - ConfirmAccessItem = false; - ConfirmDeleteItem = false; }; + GUI = { - AdvancedSettings = true; MinimizeOnClose = true; MinimizeOnStartup = true; + ShowExpiredEntriesOnDatabaseUnlock = false; ShowTrayIcon = true; - TrayIconAppearance = "colorful"; - }; - KeeShare = { - Active = "\"\\n\\n \\n\\n\""; - Foreign = "\"\\n\\n \\n\\n\""; - Own = "\"\\n\\n \\n \\n\\n\""; - QuietSuccess = true; + TrayIconAppearance = "monochrome-light"; }; + PasswordGenerator = { AdditionalChars = ""; - AdvancedMode = false; ExcludedChars = ""; - Length = 40; - SpecialChars = false; - Type = 0; - UpperCase = true; }; + SSHAgent = { Enabled = true; }; + Security = { ClearClipboardTimeout = 30; ClearSearch = false; + EnableCopyOnDoubleClick = true; }; }