summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-06-19 00:02:51 +0200
committerFlorian Klink <flokli@flokli.de>2020-06-19 00:02:51 +0200
commit1c9e02b9116836f1f070e64b5fbf1a089e812af3 (patch)
tree9149098b5ba8a6ba5ead0f4a3a36b95a8f2601c8 /nixos/modules/system/boot/systemd-unit-options.nix
parentc1e7366483ea745f329cf50a626909e17da55538 (diff)
downloadnixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar.gz
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar.bz2
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar.lz
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar.xz
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.tar.zst
nixpkgs-1c9e02b9116836f1f070e64b5fbf1a089e812af3.zip
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/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix2
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 62398f27d08..c6dbb96951a 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>