diff options
author | Florian Klink <flokli@flokli.de> | 2020-06-19 00:02:51 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-06-19 00:02:51 +0200 |
commit | 1c9e02b9116836f1f070e64b5fbf1a089e812af3 (patch) | |
tree | 9149098b5ba8a6ba5ead0f4a3a36b95a8f2601c8 /nixos | |
parent | c1e7366483ea745f329cf50a626909e17da55538 (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd-unit-options.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix index 62398f27d0887..c6dbb96951ae0 100644 --- a/nixos/modules/system/boot/systemd-unit-options.nix +++ b/nixos/modules/system/boot/systemd-unit-options.nix @@ -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> |