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:
parent
78a0e634fc
commit
b2211d1a53
1 changed files with 1 additions and 1 deletions
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue