nixos/systemd: Don't use apply for $PATH

When not using apply, other modules can use $PATH as a list instead of
getting a colon-separated list to each /bin directory.
This commit is contained in:
Janne Heß
2020-09-03 20:27:55 +02:00
parent 94c2122d38
commit 8cf4ec8b97
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ let
pkgs.gnused
systemd
];
environment.PATH = config.path;
environment.PATH = "${makeBinPath config.path}:${makeSearchPathOutput "bin" "sbin" config.path}";
}
(mkIf (config.preStart != "")
{ serviceConfig.ExecStartPre =