nixos/network-interfaces-scripted: remove network-setup unit if unused

This commit is contained in:
Sandro Jäckel 2022-06-05 13:35:04 +02:00
parent 692517bf85
commit ec00b4bb11
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -90,7 +90,7 @@ let
bindsTo = [ "network-setup.service" ];
};
networkSetup =
networkSetup = lib.mkIf (config.networking.resolvconf.enable || cfg.defaultGateway != null || cfg.defaultGateway6 != null)
{ description = "Networking Setup";
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];