nixos/dhcpcd: if disabled IPv6 don't solicit or accept IPv6

This commit is contained in:
Izorkin 2020-10-21 14:16:44 +03:00
parent 79b036b7db
commit d59bfded58
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
1 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,11 @@ let
if-carrier-up = "";
}.${cfg.wait}}
${optionalString (config.networking.enableIPv6 == false) ''
# Don't solicit or accept IPv6 Router Advertisements and DHCPv6 if disabled IPv6
noipv6
''}
${cfg.extraConfig}
'';