Files
copnix/modules/nixos/boot/default.nix
T
2026-07-20 22:06:01 +03:00

53 lines
1007 B
Nix
Executable File

{
pkgs,
lib,
inputs,
...
}:
let
customKernel = inputs.soryu-kernel.packages.${pkgs.system}.customKernel;
in
{
imports = [ ];
environment.systemPackages = [ pkgs.efibootmgr ];
# gentoo larp section
boot.kernelPackages = pkgs.linuxPackagesFor customKernel;
boot.kernelParams = [
"preempt=full"
"mitigations=off"
"nmi_watchdog=1"
"usbcore.autosuspend=-1"
"ramoops.mem_size=8388608"
"ramoops.record_size=524288"
"transparent_hugepage=madvise"
];
boot.kernelModules = [
"tcp_bbr"
"sch_fq"
];
boot.kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"kernel.softlockup_panic" = 1;
"kernel.hardlockup_panic" = 1;
"kernel.hung_task_panic" = 1;
"kernel.panic" = 10;
};
boot.loader = {
timeout = 5;
efi = {
canTouchEfiVariables = false;
efiSysMountPoint = "/boot";
};
systemd-boot = {
enable = true;
configurationLimit = 5;
};
};
}