nix/system/Bootloader.nix

33 lines
502 B
Nix
Raw Normal View History

2024-11-04 04:37:29 +03:00
{ ... }: {
# Enable non-free firmware.
hardware.enableRedistributableFirmware = true;
2024-11-04 04:37:29 +03:00
# Configure bootloader.
boot = {
tmp.useTmpfs = true;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
configurationLimit = 10;
};
};
initrd = {
kernelModules = [
"dm-snapshot"
];
availableKernelModules = [
"ahci"
"ata_piix"
"mptspi"
"nvme"
"sd_mod"
"sr_mod"
"usb_storage"
"usbhid"
"xhci_pci"
];
};
};
}