mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 19:45:42 +03:00
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:
parent
94c2122d38
commit
8cf4ec8b97
3 changed files with 6 additions and 2 deletions
|
@ -234,7 +234,6 @@ in rec {
|
|||
path = mkOption {
|
||||
default = [];
|
||||
type = with types; listOf (oneOf [ package str ]);
|
||||
apply = ps: "${makeBinPath ps}:${makeSearchPathOutput "bin" "sbin" ps}";
|
||||
description = ''
|
||||
Packages added to the service's <envar>PATH</envar>
|
||||
environment variable. Both the <filename>bin</filename>
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue