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