From b5a44bdcbd667a1a72ac5c66b16c6ddfbc86e22d Mon Sep 17 00:00:00 2001 From: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:56:22 +0100 Subject: [PATCH] keepass: stop saving config to /nix/store TLDR: makes KeePass prefer $XDG_CONFIG_HOME instead of install (/nix/store) location KeePass defaults `PreferUserConfiguration` to `false`,r the only way to set it to `true` is through global KeePass.config.xml at the install location. The default installer configuration does just that and nothing else. Excerpt from documentation (see https://keepass.info/help/base/configuration.html#tech ) > If the PreferUserConfiguration flag is false, > try to store all configuration items into the global configuration file. > If this fails, report the error and try to store them into the local configuration file. > If this fails, report the error. --- pkgs/applications/misc/keepass/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/keepass/default.nix b/pkgs/applications/misc/keepass/default.nix index f2846de37d3f..106dff404dca 100644 --- a/pkgs/applications/misc/keepass/default.nix +++ b/pkgs/applications/misc/keepass/default.nix @@ -76,7 +76,11 @@ with builtins; buildDotnetPackage rec { ]; }; - outputFiles = [ "Build/KeePass/Release/*" "Build/KeePassLib/Release/*" ]; + outputFiles = [ + "Build/KeePass/Release/*" + "Build/KeePassLib/Release/*" + "Ext/KeePass.config.xml" # contains true + ]; dllFiles = [ "KeePassLib.dll" ]; exeFiles = [ "KeePass.exe" ];