summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces-scripted.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces-scripted.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix
index 64291a62421..1ac3310797c 100644
--- a/nixos/modules/tasks/network-interfaces-scripted.nix
+++ b/nixos/modules/tasks/network-interfaces-scripted.nix
@@ -47,8 +47,8 @@ in
           { description = "Networking Setup";
 
             after = [ "network-interfaces.target" ];
-            before = [ "network.target" "network-online.target" ];
-            wantedBy = [ "network.target" "network-online.target" ];
+            before = [ "network.target" ];
+            wantedBy = [ "network.target" ];
 
             unitConfig.ConditionCapability = "CAP_NET_ADMIN";
 
@@ -149,6 +149,7 @@ in
                     ${config.systemd.package}/bin/systemctl try-restart --no-block network-setup.service
                   fi
                   ${config.systemd.package}/bin/systemctl start ip-up.target
+                  ${config.systemd.package}/bin/systemctl start network-online.target
                 '';
             preStop =
               ''