summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2020-06-19 11:45:27 +0200
committerJanne Heß <janne@hess.ooo>2020-09-03 20:27:55 +0200
commit8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc (patch)
treea1fef2200975d9a42a7b5ff6ddea46b2c07f235a /nixos/modules/system/boot/systemd.nix
parent94c2122d38aefec7aaf707757970e7a5a471b907 (diff)
downloadnixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar.gz
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar.bz2
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar.lz
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar.xz
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.tar.zst
nixpkgs-8cf4ec8b97f4a76aa3243e344e64c8a29b8788cc.zip
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.
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r--nixos/modules/system/boot/systemd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index f6c23c9b900..74d6957678f 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -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 =