nixos/systemd: Explicitly put default path packages after others

This fixes the dhcpcd issue in https://github.com/NixOS/nixpkgs/issues/76969,
which was exposed by https://github.com/NixOS/nixpkgs/pull/75031
introducing changes in the module ordering and therefore option ordering
too.

The dhcpcd issue would also be fixable by explicitly putting
dhcpcd's paths before others, however it makes more sense for systemd's
default paths to be after all others by default, since they should only
be a fallback, which is how binary finding will work if they come after.
This commit is contained in:
Silvan Mosberger 2020-01-06 15:58:06 +01:00
parent 2e8fc97dbf
commit 9327e1c6ba
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -240,7 +240,7 @@ let
serviceConfig = { name, config, ... }: {
config = mkMerge
[ { # Default path for systemd services. Should be quite minimal.
path =
path = mkAfter
[ pkgs.coreutils
pkgs.findutils
pkgs.gnugrep