diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 16:30:48 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 16:30:48 +0200 |
commit | dbe16bdd8827d83ebfeb02968a18adc6ea1585b4 (patch) | |
tree | 956a1dd4d757f2b1ef94eb2ff79dea26a7db4f0f /ymir.nix | |
parent | 11a1581979b9cc56f2c6c7bd0568c5f1502425fd (diff) | |
download | nixos-dbe16bdd8827d83ebfeb02968a18adc6ea1585b4.tar nixos-dbe16bdd8827d83ebfeb02968a18adc6ea1585b4.tar.gz nixos-dbe16bdd8827d83ebfeb02968a18adc6ea1585b4.tar.bz2 nixos-dbe16bdd8827d83ebfeb02968a18adc6ea1585b4.tar.xz nixos-dbe16bdd8827d83ebfeb02968a18adc6ea1585b4.zip |
shortened tcp keepalives
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -17,6 +17,12 @@ in { | |||
17 | device = "/dev/vda"; | 17 | device = "/dev/vda"; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | boot.kernel.sysctl = { | ||
21 | "net.ipv4.tcp_keepalive_time" = 60; | ||
22 | "net.ipv4.tcp_keepalive_intvl" = 10; | ||
23 | "net.ipv4.tcp_keepalive_probes" = 6; | ||
24 | }; | ||
25 | |||
20 | nixpkgs.config.packageOverrides = pkgs: | 26 | nixpkgs.config.packageOverrides = pkgs: |
21 | rec { | 27 | rec { |
22 | prosody = pkgs.callPackage ./customized/prosody.nix ({ | 28 | prosody = pkgs.callPackage ./customized/prosody.nix ({ |