Files
copnix/modules/nixos/boot/default.nix
T
2026-07-19 19:47:27 +03:00

38 lines
606 B
Nix
Executable File

{
pkgs,
lib,
inputs,
...
}:
let
customKernel = pkgs.callPackage "${inputs.soryu-kernel}/kernel/kernel.nix" { };
in
{
imports = [ ];
environment.systemPackages = [ pkgs.efibootmgr ];
boot.kernelPackages = pkgs.linuxPackagesFor customKernel;
boot.kernelParams = [
"preempt=full"
"mitigations=off"
"usbcore.autosuspend=-1"
"transparent_hugepage=madvise"
];
boot.loader = {
timeout = 5;
efi = {
canTouchEfiVariables = false;
efiSysMountPoint = "/boot";
};
systemd-boot = {
enable = true;
configurationLimit = 5;
};
};
}