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 unit env

The Environment option should be set in Service section.
This commit is contained in:
Sizhe Zhao 2024-10-25 11:50:31 +08:00 committed by mergify[bot]
parent 78a0e634fc
commit b2211d1a53

View file

@ -258,9 +258,9 @@ in {
}; };
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
Environment = builtins.concatStringsSep " " (lib.mapAttrsToList (name: value: "'${name}=${value}'") cfg.environment);
ExecStart = script; ExecStart = script;
}; };
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" ];
}; };