diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index f34c16b9ac0..290b2538332 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -1027,7 +1027,10 @@ in restartTriggers = [ config.environment.etc."systemd/network".source ]; }; - systemd.services.systemd-networkd-wait-online.wantedBy = [ "network-online.target" ]; + systemd.services.systemd-networkd-wait-online = { + before = [ "network-online.target" "ip-up.target" ]; + wantedBy = [ "network-online.target" "ip-up.target" ]; + }; systemd.services."systemd-network-wait-online@" = { description = "Wait for Network Interface %I to be Configured";