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" + ]; }