mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:03:55 -05:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.apps.keepassxc.enable {
|
|
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 =
|
|
lib.generators.toINI {}
|
|
config.alyraffauf.apps.keepassxc.settings;
|
|
};
|
|
}
|