fix: add GRUB efiInstallAsRemovable as fallback bootloader

This commit is contained in:
2026-07-18 03:25:28 +01:00
parent 9a30ab22b2
commit 2c8e0201f0

View File

@@ -3,8 +3,19 @@
{ {
system.stateVersion = "25.11"; system.stateVersion = "25.11";
boot.loader.systemd-boot.enable = true; # Try UEFI first, fall back to GRUB for legacy BIOS
boot.loader.efi.canTouchEfiVariables = true; boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
# GRUB as fallback for legacy/CSM boot
grub = {
enable = true;
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
};
services.xserver.xkb.layout = "uk"; services.xserver.xkb.layout = "uk";
} }