From 53336e132a8c1e50a5e92253e9a03a9a9310c0b6 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 21 Jun 2024 22:19:28 -0400 Subject: [PATCH] keepassxc: add default settings --- homeManagerModules/apps/keepassxc/default.nix | 37 +++++++++++++++++ homes/aly.nix | 40 +------------------ 2 files changed, 38 insertions(+), 39 deletions(-) diff --git a/homeManagerModules/apps/keepassxc/default.nix b/homeManagerModules/apps/keepassxc/default.nix index ce74194f..b12c12a1 100644 --- a/homeManagerModules/apps/keepassxc/default.nix +++ b/homeManagerModules/apps/keepassxc/default.nix @@ -7,6 +7,43 @@ config = lib.mkIf config.alyraffauf.apps.keepassxc.enable { home.packages = [pkgs.keepassxc]; + alyraffauf.apps.keepassxc.settings = lib.mkDefault { + Browser = { + AlwaysAllowAccess = true; + Enabled = true; + SearchInAllDatabases = true; + }; + + General = { + ConfigVersion = 2; + HideWindowOnCopy = true; + MinimizeAfterUnlock = false; + MinimizeOnOpenUrl = true; + }; + + GUI = { + ApplicationTheme = "classic"; + ColorPasswords = false; + CompactMode = true; + MinimizeOnClose = true; + MinimizeOnStartup = true; + MinimizeToTray = true; + ShowTrayIcon = true; + TrayIconAppearance = "colorful"; + }; + + Security = { + ClearClipboardTimeout = 15; + EnableCopyOnDoubleClick = true; + IconDownloadFallback = true; + LockDatabaseScreenLock = false; + }; + + SSHAgent = { + Enabled = true; + }; + }; + xdg.configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} config.alyraffauf.apps.keepassxc.settings; diff --git a/homes/aly.nix b/homes/aly.nix index 7b8f3d74..be2b9aec 100644 --- a/homes/aly.nix +++ b/homes/aly.nix @@ -102,45 +102,7 @@ fastfetch.enable = true; firefox.enable = true; fzf.enable = true; - keepassxc = { - enable = true; - settings = { - Browser = { - AlwaysAllowAccess = true; - Enabled = true; - SearchInAllDatabases = true; - }; - - General = { - ConfigVersion = 2; - HideWindowOnCopy = true; - MinimizeAfterUnlock = false; - MinimizeOnOpenUrl = true; - }; - - GUI = { - ApplicationTheme = "classic"; - ColorPasswords = false; - CompactMode = true; - MinimizeOnClose = true; - MinimizeOnStartup = true; - MinimizeToTray = true; - ShowTrayIcon = true; - TrayIconAppearance = "colorful"; - }; - - Security = { - ClearClipboardTimeout = 15; - EnableCopyOnDoubleClick = true; - IconDownloadFallback = true; - LockDatabaseScreenLock = false; - }; - - SSHAgent = { - Enabled = true; - }; - }; - }; + keepassxc.enable = true; neofetch.enable = true; neovim.enable = true; tmux.enable = true;