diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index c8b48b995a0a..6a8f20bab5b6 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -67,9 +67,10 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - DefaultDependencies = false; }; + unitConfig.DefaultDependencies = false; + script = '' # Set the static DNS configuration, if given.