nix/module/common/Bootloader.nix

35 lines
504 B
Nix
Raw Normal View History

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