nixos/network-interfaces-scripted: remove network-setup unit if unused
This commit is contained in:
@@ -90,7 +90,7 @@ let
|
|||||||
bindsTo = [ "network-setup.service" ];
|
bindsTo = [ "network-setup.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
networkSetup =
|
networkSetup = lib.mkIf (config.networking.resolvconf.enable || cfg.defaultGateway != null || cfg.defaultGateway6 != null)
|
||||||
{ description = "Networking Setup";
|
{ description = "Networking Setup";
|
||||||
|
|
||||||
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];
|
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user