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