pass-secret-service: Revert storePath change

Signed-off-by: Cynthia Fox <cyntheticfox@gh0st.sh>
This commit is contained in:
Cynthia Fox 2023-05-07 15:56:37 -04:00
parent b1bfb4ddf0
commit 93d20b13a0
No known key found for this signature in database
GPG key ID: 5960278CE235F821

View file

@ -15,8 +15,8 @@ in {
package = mkPackageOption pkgs "pass-secret-service" { };
storePath = mkOption {
type = types.str;
default = "";
type = with types; nullOr str;
default = null;
defaultText = "$HOME/.password-store";
example = "/home/user/.local/share/password-store";
description = ''
@ -52,7 +52,7 @@ in {
Service = {
Type = "dbus";
ExecStart = "${binPath} ${
optionalString (cfg.storePath != "") "--path ${cfg.storePath}"
optionalString (cfg.storePath != null) "--path ${cfg.storePath}"
}";
BusName = busName;
};