keepassxc: add default settings

This commit is contained in:
Aly Raffauf 2024-06-21 22:19:28 -04:00
parent 307bc64853
commit 53336e132a
2 changed files with 38 additions and 39 deletions

View file

@ -7,6 +7,43 @@
config = lib.mkIf config.alyraffauf.apps.keepassxc.enable { config = lib.mkIf config.alyraffauf.apps.keepassxc.enable {
home.packages = [pkgs.keepassxc]; home.packages = [pkgs.keepassxc];
alyraffauf.apps.keepassxc.settings = lib.mkDefault {
Browser = {
AlwaysAllowAccess = true;
Enabled = true;
SearchInAllDatabases = 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 = xdg.configFile."keepassxc/keepassxc.ini".text =
lib.generators.toINI {} lib.generators.toINI {}
config.alyraffauf.apps.keepassxc.settings; config.alyraffauf.apps.keepassxc.settings;

View file

@ -102,45 +102,7 @@
fastfetch.enable = true; fastfetch.enable = true;
firefox.enable = true; firefox.enable = true;
fzf.enable = true; fzf.enable = true;
keepassxc = { keepassxc.enable = true;
enable = true;
settings = {
Browser = {
AlwaysAllowAccess = true;
Enabled = true;
SearchInAllDatabases = 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;
};
};
};
neofetch.enable = true; neofetch.enable = true;
neovim.enable = true; neovim.enable = true;
tmux.enable = true; tmux.enable = true;