diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-06-05 13:35:04 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-06-05 13:35:55 +0200 |
commit | ec00b4bb1186719bbee30a89ca7f519c30001abd (patch) | |
tree | 4952aecf9544cb1c3568f4dd6b1c49510ee38db4 /nixos/modules/tasks/network-interfaces-scripted.nix | |
parent | 692517bf851f2d8d999f0ad50f53fa1d2dd5c8f9 (diff) |
nixos/network-interfaces-scripted: remove network-setup unit if unused
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-scripted.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index b0f160c1dbf95..d3b5f0d06b17b 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -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" ]; |