home/keepassxc: refactored settings

This commit is contained in:
Aly Raffauf 2024-07-13 21:34:41 -04:00
parent 29aab63327
commit 5ba420030a

View file

@ -7,44 +7,45 @@
config = lib.mkIf config.ar.home.apps.keepassxc.enable { config = lib.mkIf config.ar.home.apps.keepassxc.enable {
home.packages = [pkgs.keepassxc]; home.packages = [pkgs.keepassxc];
ar.home.apps.keepassxc.settings = lib.mkDefault { xdg.configFile."keepassxc/keepassxc.ini".text = let
Browser = { defaults = {
AlwaysAllowAccess = true; Browser = {
Enabled = true; AlwaysAllowAccess = true;
SearchInAllDatabases = true; Enabled = true;
UpdateBinaryPath = false; SearchInAllDatabases = true;
UpdateBinaryPath = false;
};
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;
}; };
General = { settings = defaults // config.ar.home.apps.keepassxc.settings;
ConfigVersion = 2; in
HideWindowOnCopy = true; lib.generators.toINI {} settings;
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.ar.home.apps.keepassxc.settings;
}; };
} }