voidconf/modules/kernel.nix
2024-01-01 17:24:57 +01:00

18 lines
382 B
Nix

{ ... }:
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";
};
};
};
}