From dbe16bdd8827d83ebfeb02968a18adc6ea1585b4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 16:30:48 +0200 Subject: shortened tcp keepalives --- ymir.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ymir.nix b/ymir.nix index 53dfd7c5..a4bef801 100644 --- a/ymir.nix +++ b/ymir.nix @@ -17,6 +17,12 @@ in { device = "/dev/vda"; }; + boot.kernel.sysctl = { + "net.ipv4.tcp_keepalive_time" = 60; + "net.ipv4.tcp_keepalive_intvl" = 10; + "net.ipv4.tcp_keepalive_probes" = 6; + }; + nixpkgs.config.packageOverrides = pkgs: rec { prosody = pkgs.callPackage ./customized/prosody.nix ({ -- cgit v1.2.3