summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-11-16 13:02:48 +0100
committerFlorian Klink <flokli@flokli.de>2020-11-16 13:07:49 +0100
commit13be37662d7e05c2e950ff849cb3745f14632925 (patch)
treea2b16f6169fe1e741e0f11e3e6a29cbba8f47e7b /nixos/modules/tasks/network-interfaces.nix
parentb6deb94192cd95990a0f6ce2c4ad1253c5a5cf7f (diff)
downloadnixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar.gz
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar.bz2
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar.lz
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar.xz
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.tar.zst
nixpkgs-13be37662d7e05c2e950ff849cb3745f14632925.zip
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/network-interfaces.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix1
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index e5bd5775368..53c54c2e398 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";