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"; }