2024-06-12 22:18:26 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.home.apps.keepassxc.enable {
|
2024-06-17 16:31:54 -04:00
|
|
|
home.packages = [pkgs.keepassxc];
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
xdg.configFile."keepassxc/keepassxc.ini".text = let
|
|
|
|
defaults = {
|
|
|
|
Browser = {
|
|
|
|
AlwaysAllowAccess = true;
|
|
|
|
Enabled = true;
|
|
|
|
SearchInAllDatabases = true;
|
|
|
|
UpdateBinaryPath = false;
|
|
|
|
};
|
2024-06-21 22:19:28 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
General = {
|
|
|
|
ConfigVersion = 2;
|
|
|
|
HideWindowOnCopy = true;
|
|
|
|
MinimizeAfterUnlock = false;
|
|
|
|
MinimizeOnOpenUrl = true;
|
|
|
|
};
|
2024-06-21 22:19:28 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
GUI = {
|
|
|
|
ApplicationTheme = "classic";
|
|
|
|
ColorPasswords = false;
|
|
|
|
CompactMode = true;
|
|
|
|
MinimizeOnClose = true;
|
|
|
|
MinimizeOnStartup = true;
|
|
|
|
MinimizeToTray = true;
|
|
|
|
ShowTrayIcon = true;
|
|
|
|
TrayIconAppearance = "colorful";
|
|
|
|
};
|
2024-06-21 22:19:28 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
Security = {
|
|
|
|
ClearClipboardTimeout = 15;
|
|
|
|
EnableCopyOnDoubleClick = true;
|
|
|
|
IconDownloadFallback = true;
|
|
|
|
LockDatabaseScreenLock = false;
|
|
|
|
};
|
2024-06-21 22:19:28 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
SSHAgent.Enabled = true;
|
|
|
|
};
|
2024-06-21 22:19:28 -04:00
|
|
|
|
2024-07-13 21:34:41 -04:00
|
|
|
settings = defaults // config.ar.home.apps.keepassxc.settings;
|
|
|
|
in
|
|
|
|
lib.generators.toINI {} settings;
|
2024-06-12 22:18:26 -04:00
|
|
|
};
|
|
|
|
}
|