Bootloader : Refactor.

This commit is contained in:
Dmitry Voronin 2024-04-14 22:58:11 +03:00
parent 7be39bb2bb
commit 9082764b58
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -3,22 +3,32 @@
hardware.enableRedistributableFirmware = true;
# 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"
];
boot = {
loader = {
efi.canTouchEfiVariables = true;
# /tmp on tmpfs.
boot.tmp.useTmpfs = true;
systemd-boot = {
enable = true;
configurationLimit = 7;
};
};
tmp.useTmpfs = true;
initrd = {
kernelModules = [
"dm-snapshot"
];
availableKernelModules = [
"ahci"
"ata_piix"
"mptspi"
"nvme"
"sd_mod"
"sr_mod"
"usb_storage"
"usbhid"
"xhci_pci"
];
};
};
}