2024-06-12 22:18:26 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config = lib.mkIf config.alyraffauf.apps.keepassxc.enable {
|
2024-06-12 22:48:40 -04:00
|
|
|
home = {
|
|
|
|
file.".cache/keepassxc/keepassxc.ini".text = lib.generators.toINI {} {
|
|
|
|
General.LastActiveDatabase = "/${config.home.homeDirectory}/sync/Passwords.kdbx";
|
|
|
|
};
|
|
|
|
packages = [pkgs.keepassxc];
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-06-12 22:48:40 -04:00
|
|
|
xdg.configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} {
|
|
|
|
Browser = {
|
|
|
|
AlwaysAllowAccess = true;
|
|
|
|
Enabled = true;
|
|
|
|
SearchInAllDatabases = true;
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-06-12 22:48:40 -04:00
|
|
|
General = {
|
|
|
|
ConfigVersion = 2;
|
|
|
|
HideWindowOnCopy = true;
|
|
|
|
MinimizeAfterUnlock = false;
|
|
|
|
MinimizeOnOpenUrl = true;
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-06-12 22:48:40 -04:00
|
|
|
GUI = {
|
|
|
|
ApplicationTheme = "classic";
|
|
|
|
ColorPasswords = false;
|
|
|
|
CompactMode = true;
|
|
|
|
MinimizeOnClose = true;
|
|
|
|
MinimizeOnStartup = false;
|
|
|
|
MinimizeToTray = true;
|
|
|
|
ShowTrayIcon = true;
|
|
|
|
TrayIconAppearance = "colorful";
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-06-12 22:48:40 -04:00
|
|
|
Security = {
|
|
|
|
ClearClipboardTimeout = 15;
|
|
|
|
EnableCopyOnDoubleClick = true;
|
|
|
|
IconDownloadFallback = true;
|
|
|
|
LockDatabaseScreenLock = true;
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
|
2024-06-12 22:48:40 -04:00
|
|
|
SSHAgent = {
|
|
|
|
Enabled = true;
|
|
|
|
};
|
|
|
|
};
|
2024-06-12 22:18:26 -04:00
|
|
|
};
|
|
|
|
}
|