fix: set canTouchEfiVariables=false for GRUB efiInstallAsRemovable

This commit is contained in:
2026-07-18 03:35:18 +01:00
parent 2c8e0201f0
commit 524ab4d093

View File

@@ -3,12 +3,12 @@
{ {
system.stateVersion = "25.11"; system.stateVersion = "25.11";
# Try UEFI first, fall back to GRUB for legacy BIOS # Dual bootloader: systemd-boot for UEFI, GRUB fallback for legacy/CSM
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = false;
# GRUB as fallback for legacy/CSM boot # GRUB EFI fallback at removable media path
grub = { grub = {
enable = true; enable = true;
device = "nodev"; device = "nodev";