all: set ipv6 tcp keepalive to 60

This commit is contained in:
Aaron Bieber 2022-11-09 09:52:52 -07:00
parent 71cfdbaa23
commit 088c65a287
No known key found for this signature in database

View File

@ -111,7 +111,10 @@ in {
boot = {
cleanTmpDir = true;
kernelPackages = lib.mkDefault pkgs.linuxPackages_hardened;
kernel.sysctl = { "net.ipv4.tcp_keepalive_time" = 60; };
kernel.sysctl = {
"net.ipv4.tcp_keepalive_time" = 60;
"net.ipv6.tcp_keepalive_time" = 60;
};
};
environment.systemPackages = with pkgs;