muscari: switch bootloader from systemd-boot (UEFI) to GRUB (BIOS)

VM 81.26.189.192 boots in Legacy BIOS mode (PREREQUISITES.md
check 5+11 returned BIOS / NO_EFI), so UEFI/systemd-boot is not
available. Switched to GRUB on /dev/vda.

Changes:
- boot.loader.grub.enable = true, device = "/dev/vda"
- boot.loader.systemd-boot.enable = lib.mkForce false
- boot.loader.efi.canTouchEfiVariables = lib.mkForce false
- Comments updated to reflect BIOS / GRUB choice

disk-config.nix NOT touched: the 512M ESP at /boot is unused in
BIOS mode (GRUB installs to MBR), but harmless. If we later switch
to UEFI, the ESP will be ready.

Verification:
- nix flake show: nixosConfigurations.muscari
- boot.loader.grub.enable = true
- boot.loader.systemd-boot.enable = false
- fileSystems: /boot (vfat ESP) + / (ext4 root) from disko

Session: verify plan
This commit is contained in:
mikl 2026-06-26 03:05:01 +03:00
parent 5e1b3697c8
commit 430252a4c7

View file

@ -20,9 +20,17 @@
];
};
# Bootloader — systemd-boot (UEFI, требуется для YC standard-v3)
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Bootloader — GRUB (BIOS, VM в legacy boot mode)
# VM 81.26.189.192 загружается в Legacy BIOS (check 5+11 в PREREQUISITES.md),
# поэтому UEFI/systemd-boot недоступен. ESP раздел в disk-config.nix
# не используется (GRUB ставится в MBR /dev/vda), но и не мешает.
boot.loader.grub = {
enable = true;
device = "/dev/vda";
useOSProber = false;
};
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
# fileSystems — определяется через disko (см. disk-config.nix)
# Не задаём явно fileSystems."/" чтобы не конфликтовать с disko