seperate kernel config

This commit is contained in:
Linus Torvalds authored and elwrcl committed 2026-08-27 21:05:58 +03:00
1 parent 7a45aad6b4
commit f379e7368e
1 file changed
+25
@@ -0,0 +1,25 @@
{ ... }:
{
flake.nixosModules.common-kernel =
{ pkgs, ... }:
{
# interesting...
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
"mitigations=off"
"nmi_watchdog=1"
"transparent_hugepage=madvise"
];
boot.kernelModules = [
"tcp_bbr"
"sch_fq"
];
boot.kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
};
};
}