summary refs log tree commit diff
path: root/nixos/modules/services/networking/dhcpcd.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-12-22 10:49:19 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2021-02-18 22:07:00 +0100
commit15d6eacb1564c7c6467f9a50a91426000593dc33 (patch)
tree2462e9701794c01055fb74f4d7a2685c61ca78a2 /nixos/modules/services/networking/dhcpcd.nix
parentbbe2fbe92914852cbffece4716f305eabe55f37b (diff)
downloadnixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar.gz
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar.bz2
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar.lz
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar.xz
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.tar.zst
nixpkgs-15d6eacb1564c7c6467f9a50a91426000593dc33.zip
nixos/{networkd,dhcpcd}: remove udev-settle hack
systemd-udev-settle is a terrible hack[1] and should never[2] ever[3]
used, seriously it's very bad. It was used as a stop-gap solution for
issue #39069, but thanks to PR #79532 it can be removed now.

[1]: https://github.com/systemd/systemd/issues/7293#issuecomment-592941764
[2]: https://github.com/NixOS/nixpkgs/issues/73095
[3]: https://github.com/NixOS/nixpkgs/issues/107341
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index d10bffd9147..31e4b6ad298 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -191,9 +191,8 @@ in
       { description = "DHCP Client";
 
         wantedBy = [ "multi-user.target" ] ++ optional (!hasDefaultGatewaySet) "network-online.target";
-        wants = [ "network.target" "systemd-udev-settle.service" ];
+        wants = [ "network.target" ];
         before = [ "network-online.target" ];
-        after = [ "systemd-udev-settle.service" ];
 
         restartTriggers = [ exitHook ];