mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
home/keepassxc: refactored settings
This commit is contained in:
parent
29aab63327
commit
5ba420030a
|
@ -7,44 +7,45 @@
|
|||
config = lib.mkIf config.ar.home.apps.keepassxc.enable {
|
||||
home.packages = [pkgs.keepassxc];
|
||||
|
||||
ar.home.apps.keepassxc.settings = lib.mkDefault {
|
||||
Browser = {
|
||||
AlwaysAllowAccess = true;
|
||||
Enabled = true;
|
||||
SearchInAllDatabases = true;
|
||||
UpdateBinaryPath = false;
|
||||
xdg.configFile."keepassxc/keepassxc.ini".text = let
|
||||
defaults = {
|
||||
Browser = {
|
||||
AlwaysAllowAccess = true;
|
||||
Enabled = true;
|
||||
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 = {
|
||||
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.ar.home.apps.keepassxc.settings;
|
||||
settings = defaults // config.ar.home.apps.keepassxc.settings;
|
||||
in
|
||||
lib.generators.toINI {} settings;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue