Merge pull request #176379 from SuperSandro2000/network-setup

nixos/network-interfaces-scripted: remove network-setup unit if unused
This commit is contained in:
Sandro 2022-06-17 22:36:45 +02:00 committed by GitHub
commit 8effa309cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" ];