This commit is contained in:
Nox Sluijtman 2024-01-01 17:23:16 +01:00
parent 6df439251f
commit 8931887e59
2 changed files with 19 additions and 0 deletions

View file

@ -15,6 +15,7 @@
./modules/xconfig.nix
./modules/zsh.nix
./modules/prometheus.nix
./modules/kernel.nix
];
};
@ -24,6 +25,7 @@
./modules/vim.nix
./modules/zsh.nix
./modules/prometheus.nix
./modules/kernel.nix
];
};

17
modules/kernel.nix Normal file
View file

@ -0,0 +1,17 @@
{ ... }:
with lib;
let cfg = config.voidcruiser.kernelTweaks;
in {
options.voidcruiser.kernelTweaks = {
enable = mkEnableOption "Enables kernel tweaks";
};
config = mkIf cfg.enable {
boot = {
kernelModules = [ "tcp_bbr" ];
kernel.sysctl = {
"net.ipv4.tcp_congestion_control" = "bbr";
"net.core.default_qdisc" = "fq";
};
};
};
}