diff options
author | Florian Klink <flokli@flokli.de> | 2020-11-16 13:02:48 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-11-16 13:07:49 +0100 |
commit | 13be37662d7e05c2e950ff849cb3745f14632925 (patch) | |
tree | a2b16f6169fe1e741e0f11e3e6a29cbba8f47e7b /nixos/modules/tasks | |
parent | b6deb94192cd95990a0f6ce2c4ad1253c5a5cf7f (diff) |
kernel config: explicitly enable CONFIG_IPV6
We currently build CONFIG_IPV6=m.
This seems to be not really well-supported in mainline kernels - see
https://lore.kernel.org/netdev/20201115224509.2020651-1-flokli@flokli.de/T/#u
Compiling it as a module doesn't give too much benefit - even for people
who did explicitly set `enableIPv6` to false, the `ipv6` module was
still loaded, as soon as another module was loaded that requires it
(bridge,br_netfilter,wireguard,ip6table_mangle,sctp,…).
By compiling it in, we only loose the possibility to not add it to
`boot.kernelModules` anymore (as it's part of the kernel directly). The
space savings are negligible.
People wanting to disable IPv6 still get the appropriate sysctls and
options set (while having the kernel code loaded), nothing is really
changing here.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index e5bd57753683..53c54c2e3980 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -1062,7 +1062,6 @@ in ]; boot.kernelModules = [ ] - ++ optional cfg.enableIPv6 "ipv6" ++ optional hasVirtuals "tun" ++ optional hasSits "sit" ++ optional hasBonds "bonding"; |