nixos/systemd: allow str in systemd.services.<name>.path
Turns out, #75510 was too restrictive. We also need to allow str here, as some modules set this to "/run/wrappers" to bring `/run/wrappers/bin` into $PATH of a unit.
This commit is contained in:
parent
c1e7366483
commit
1c9e02b911
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ in rec {
|
|||
|
||||
path = mkOption {
|
||||
default = [];
|
||||
type = with types; listOf package;
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue