From 2c8e0201f0bb2a274b83533919bd22d6420b83bb Mon Sep 17 00:00:00 2001 From: Hermes-Neo Date: Sat, 18 Jul 2026 03:25:28 +0100 Subject: [PATCH] fix: add GRUB efiInstallAsRemovable as fallback bootloader --- modules/common/system.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/common/system.nix b/modules/common/system.nix index 4612399..d3bccd3 100644 --- a/modules/common/system.nix +++ b/modules/common/system.nix @@ -3,8 +3,19 @@ { system.stateVersion = "25.11"; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + # Try UEFI first, fall back to GRUB for legacy BIOS + 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"; }