mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
seperate kernel config
This commit is contained in:
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user