20 lines
509 B
Nix
20 lines
509 B
Nix
{ config, inputs, pkgs, ... }: {
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = false;
|
|
efi.canTouchEfiVariables = true;
|
|
efi.efiSysMountPoint = "/boot/efi";
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "/dev/sda";
|
|
};
|
|
};
|
|
initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
|
|
initrd.kernelModules = [ "nvme" ];
|
|
kernel.sysctl = {
|
|
"kernel.core_pattern" = "|/bin/false";
|
|
"kernel.sysrq" = 1;
|
|
};
|
|
};
|
|
}
|