nixos/common: Block SCTP kernel module loading
CI / Check, build and cache nixfiles (push) Successful in 52m10s
Update docs / update (push) Successful in 58s

This commit is contained in:
2026-11-19 00:26:50 +00:00
parent 01c8261de9
commit b5be218f14
+7
View File
@@ -129,6 +129,13 @@ in
boot = {
# Use latest LTS release by default
kernelPackages = mkDefault (lib.my.c.kernel.lts pkgs);
# Containers share the host kernel. Block SCTP on the system that owns it.
extraModprobeConfig = mkIf (!config.boot.isContainer) ''
install sctp ${pkgs.coreutils}/bin/false
'';
kernelParams = mkIf (!config.boot.isContainer) [ "module_blacklist=sctp" ];
kernel = {
sysctl = {
"net.ipv6.route.max_size" = mkDefault 16384;