From fcb09ac34784738de7eb61a9aadf9639065c5f92 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 12 Jun 2024 22:18:26 -0400 Subject: [PATCH] homeManagerModules: add apps.keepassxc with defaults --- homeManagerModules/apps/default.nix | 1 + homeManagerModules/apps/keepassxc/default.nix | 46 +++++++++++++++++++ homeManagerModules/options.nix | 1 + 3 files changed, 48 insertions(+) create mode 100644 homeManagerModules/apps/keepassxc/default.nix diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index 0619cfae..314fe2e1 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -14,6 +14,7 @@ ./firefox ./fuzzel ./fzf + ./keepassxc ./librewolf ./mako ./neofetch diff --git a/homeManagerModules/apps/keepassxc/default.nix b/homeManagerModules/apps/keepassxc/default.nix new file mode 100644 index 00000000..f484efe2 --- /dev/null +++ b/homeManagerModules/apps/keepassxc/default.nix @@ -0,0 +1,46 @@ +{ + pkgs, + lib, + config, + ... +}: { + config = lib.mkIf config.alyraffauf.apps.keepassxc.enable { + home.packages = [pkgs.keepassxc]; + xdg.configFile."keepassxc/keepassxc.ini".text = '' + [General] + ConfigVersion=2 + HideWindowOnCopy=true + MinimizeAfterUnlock=false + MinimizeOnOpenUrl=true + + [Browser] + AlwaysAllowAccess=true + CustomProxyLocation= + Enabled=true + SearchInAllDatabases=true + + [GUI] + ApplicationTheme=classic + ColorPasswords=false + CompactMode=true + MinimizeOnClose=true + MinimizeOnStartup=false + MinimizeToTray=true + ShowTrayIcon=true + TrayIconAppearance=colorful + + [PasswordGenerator] + AdditionalChars= + ExcludedChars= + + [SSHAgent] + Enabled=true + + [Security] + ClearClipboardTimeout=15 + EnableCopyOnDoubleClick=true + IconDownloadFallback=true + LockDatabaseScreenLock=true + ''; + }; +} diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index 22e3ac11..4b33056b 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -23,6 +23,7 @@ firefox.enable = lib.mkEnableOption "Firefox web browser."; fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher."; fzf.enable = lib.mkEnableOption "Fzf fuzzy file finder."; + keepassxc.enable = lib.mkEnableOption "KeePassXC password manager."; librewolf.enable = lib.mkEnableOption "Librewolf web browser."; mako.enable = lib.mkEnableOption "Mako notification daemon."; neofetch.enable = lib.mkEnableOption "Neofetch.";