summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-09-24 16:08:09 +0200
committerAlan Pearce2018-09-24 16:08:09 +0200
commita114b12027fbd82484833a7a2ded35273de39e3b (patch)
treefa86d89578139834eab62d73db9ebd0bb196fc73
parent474a3757e7eb9d57d040c6f95c3b689c17288bca (diff)
downloadnixfiles-a114b12027fbd82484833a7a2ded35273de39e3b.tar.lz
nixfiles-a114b12027fbd82484833a7a2ded35273de39e3b.tar.zst
nixfiles-a114b12027fbd82484833a7a2ded35273de39e3b.zip
bare-metal: tweak TCP congestion control
-rw-r--r--modules/hardware/bare-metal.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/hardware/bare-metal.nix b/modules/hardware/bare-metal.nix
index eacc9f40..9d79fb50 100644
--- a/modules/hardware/bare-metal.nix
+++ b/modules/hardware/bare-metal.nix
@@ -11,6 +11,11 @@
 
   hardware.cpu.intel.updateMicrocode = true;
 
+  boot.kernel.sysctl = {
+    "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp";
+    "net.ipv4.tcp_congestion_control" = "illinois";
+  };
+
   boot.tmpOnTmpfs = true;
 
   fileSystems."/".options = [ "noatime" "nodiratime" ];