nixcfg/homeManagerModules/apps/keepassxc/default.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.ar.home.apps.keepassxc.enable {
home.packages = [pkgs.keepassxc];
ar.home.apps.keepassxc.settings = lib.mkDefault {
2024-06-21 22:19:28 -04:00
Browser = {
AlwaysAllowAccess = true;
Enabled = true;
SearchInAllDatabases = true;
UpdateBinaryPath = false;
2024-06-21 22:19:28 -04:00
};
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;
};
2024-07-10 23:43:51 -04:00
SSHAgent.Enabled = true;
2024-06-21 22:19:28 -04:00
};
xdg.configFile."keepassxc/keepassxc.ini".text =
lib.generators.toINI {}
config.ar.home.apps.keepassxc.settings;
};
}