nixos/lib/systemd-lib.nix: move comment back down to packages

https://github.com/NixOS/nixpkgs/pull/164943#discussion_r833215903
This commit is contained in:
Florian Klink 2022-03-24 19:03:09 +01:00
parent e3083decc4
commit fc91cdb5bc

View File

@ -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