summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-09-30 16:30:48 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-09-30 16:30:48 +0200
commitdbe16bdd8827d83ebfeb02968a18adc6ea1585b4 (patch)
tree956a1dd4d757f2b1ef94eb2ff79dea26a7db4f0f /ymir.nix
parent11a1581979b9cc56f2c6c7bd0568c5f1502425fd (diff)
downloadnixos-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.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index 53dfd7c5..a4bef801 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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 ({