diff options
author | Nikolay Amiantov <ab@fmap.me> | 2018-02-18 23:42:03 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2018-02-19 23:33:54 +0300 |
commit | 5ff25fcd7ebc18fe3a0f73fd95831fb267b06734 (patch) | |
tree | 961b894fd77e6441a833d812299c0ec1b4b9f2af /nixos/modules/services/networking/dhcpcd.nix | |
parent | 996ed0830e052fb32546ea317eb01d910a975c9e (diff) |
dhcpcd service: want for both IP stacks
We want to wait for both stacks to be active before declaring that network is active.
So either both default gateways must be specified or only IPv4 if IPv6 is disabled to
avoid dhcpcd for network-online.target.
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index f0f8f1324c5b..e2127518f1ae 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -156,7 +156,7 @@ in systemd.services.dhcpcd = let cfgN = config.networking; hasDefaultGatewaySet = (cfgN.defaultGateway != null && cfgN.defaultGateway.address != "") - || (cfgN.defaultGateway6 != null && cfgN.defaultGateway6.address != ""); + && (!cfgN.enableIPv6 || (cfgN.defaultGateway6 != null && cfgN.defaultGateway6.address != "")); in { description = "DHCP Client"; |