mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
26 lines
493 B
Nix
26 lines
493 B
Nix
{ ... }:
|
|
{
|
|
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";
|
|
};
|
|
};
|
|
}
|