home/keepassxc: refactored settings

This commit is contained in:
Aly Raffauf 2024-07-13 21:34:41 -04:00
parent 29aab63327
commit 5ba420030a

View file

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