From fc91cdb5bcd909f32496c4b69347fb1bd0755a77 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 24 Mar 2022 19:03:09 +0100 Subject: [PATCH] nixos/lib/systemd-lib.nix: move comment back down to packages https://github.com/NixOS/nixpkgs/pull/164943#discussion_r833215903 --- nixos/lib/systemd-lib.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/lib/systemd-lib.nix b/nixos/lib/systemd-lib.nix index aba63886e0f5..918180a014b2 100644 --- a/nixos/lib/systemd-lib.nix +++ b/nixos/lib/systemd-lib.nix @@ -293,7 +293,7 @@ in rec { mkServiceConfig = path: { name, config, ... }: { config = mkMerge - [ { # Default path for systemd services. Should be quite minimal. + [ { path = mkAfter path; environment.PATH = mkIf (config.path != []) "${makeBinPath config.path}:${makeSearchPathOutput "bin" "sbin" config.path}"; } @@ -324,6 +324,7 @@ in rec { ]; }; + # Default path for systemd services. Should be quite minimal. serviceConfig = mkServiceConfig [ pkgs.coreutils pkgs.findutils