voidconf/modules/kernel.nix
2025-04-18 09:37:57 +02:00

19 lines
391 B
Nix

{ lib, config, ... }:
with lib;
let
cfg = config.voidconf.kernelTweaks;
in
{
options.voidconf.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";
};
};
};
}