summary refs log tree commit diff stats
path: root/modules/hardware
diff options
context:
space:
mode:
authorAlan Pearce2018-09-24 16:08:09 +0200
committerAlan Pearce2018-09-24 16:08:09 +0200
commita114b12027fbd82484833a7a2ded35273de39e3b (patch)
treefa86d89578139834eab62d73db9ebd0bb196fc73 /modules/hardware
parent474a3757e7eb9d57d040c6f95c3b689c17288bca (diff)
downloadnixos-configuration-a114b12027fbd82484833a7a2ded35273de39e3b.tar.lz
nixos-configuration-a114b12027fbd82484833a7a2ded35273de39e3b.tar.zst
nixos-configuration-a114b12027fbd82484833a7a2ded35273de39e3b.zip
bare-metal: tweak TCP congestion control
Diffstat (limited to 'modules/hardware')
-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 eacc9f4..9d79fb5 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" ];