From 3cbdbc45f7e53ee08d0ab2e425bb671900c5cf18 Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 10 Jul 2024 15:45:10 +0200 Subject: [PATCH] more quality of life improvements... --- common/base-server.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common/base-server.nix b/common/base-server.nix index 82b39d9..acf31db 100644 --- a/common/base-server.nix +++ b/common/base-server.nix @@ -33,4 +33,21 @@ boot.kernelParams = [ "panic=30" "boot.panic_on_fail" ]; + + boot.kernel.sysctl = { + # Set default TCP congestion control algorithm + "net.ipv4.tcp_congestion_control" = "bbr"; + + # Enable ECN + "net.ipv4.tcp_ecn" = 1; + + # Enable TCP fast open + "net.ipv4.tcp_fastopen" = 3; + }; + + # reduce closure size, feel free to add your locale here + i18n.supportedLocales = [ + "en_US.UTF-8/UTF-8" + "fr_FR.UTF-8/UTF-8" + ]; }