1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

fix(home-manager/sops): fix setting systemd unit environment

This commit is contained in:
Sizhe Zhao 2024-10-24 15:39:25 +08:00 committed by mergify[bot]
parent d089e742fb
commit 78a0e634fc

View file

@ -260,7 +260,7 @@ in {
Type = "oneshot"; Type = "oneshot";
ExecStart = script; ExecStart = script;
}; };
Environment = builtins.concatStringsSep " " (lib.mapAttrsToList (name: value: "'${name}=${value}'") cfg.environment); Environment = cfg.environment;
Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session-pre.target" ] else [ "default.target" ]; Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session-pre.target" ] else [ "default.target" ];
}; };