2024-03-09 01:15:42 +03:00
|
|
|
{ ... }: {
|
2024-03-04 00:34:39 +03:00
|
|
|
# Enable non-free firmware.
|
2024-03-09 01:15:42 +03:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2024-03-04 00:34:39 +03:00
|
|
|
|
|
|
|
# Configure bootloader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 7;
|
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"ahci"
|
|
|
|
"ata_piix"
|
|
|
|
"mptspi"
|
|
|
|
"nvme"
|
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
|
|
|
"usb_storage"
|
|
|
|
"usbhid"
|
|
|
|
"xhci_pci"
|
|
|
|
];
|
2024-04-05 21:13:10 +03:00
|
|
|
|
|
|
|
# /tmp on tmpfs.
|
|
|
|
boot.tmp.useTmpfs = true;
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|