Don't override the baseUnit's PATH by default
This commit is contained in:
parent
3ed3c60d0f
commit
59a060523e
@ -173,7 +173,7 @@ let
|
|||||||
|
|
||||||
serviceConfig = { name, config, ... }: {
|
serviceConfig = { name, config, ... }: {
|
||||||
config = mkMerge
|
config = mkMerge
|
||||||
[ { # Default path for systemd services. Should be quite minimal.
|
[ (mkIf (config.baseUnit == null) { # Default path for systemd services. Should be quite minimal.
|
||||||
path =
|
path =
|
||||||
[ pkgs.coreutils
|
[ pkgs.coreutils
|
||||||
pkgs.findutils
|
pkgs.findutils
|
||||||
@ -182,7 +182,7 @@ let
|
|||||||
systemd
|
systemd
|
||||||
];
|
];
|
||||||
environment.PATH = config.path;
|
environment.PATH = config.path;
|
||||||
}
|
})
|
||||||
(mkIf (config.preStart != "")
|
(mkIf (config.preStart != "")
|
||||||
{ serviceConfig.ExecStartPre = makeJobScript "${name}-pre-start" ''
|
{ serviceConfig.ExecStartPre = makeJobScript "${name}-pre-start" ''
|
||||||
#! ${pkgs.stdenv.shell} -e
|
#! ${pkgs.stdenv.shell} -e
|
||||||
|
Loading…
Reference in New Issue
Block a user