From ce41d1ef4e6272a3df44372b330df08296324858 Mon Sep 17 00:00:00 2001 From: jeirmeister Date: Fri, 12 Sep 2025 14:42:06 -0700 Subject: [PATCH] . --- flake.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 9e578f2..29d586b 100644 --- a/flake.nix +++ b/flake.nix @@ -45,7 +45,13 @@ content = { type = "gpt"; partitions = { + bios_boot = { + size = "2MiB"; + type = "EF02"; # BIOS boot partition (unformatted) + content = null; # No filesystem + }; ESP = { + # Optional for hybrid, but harmless size = "512M"; type = "EF00"; content = { @@ -54,7 +60,6 @@ mountpoint = "/boot"; }; }; - root = { size = "100%"; content = { @@ -102,16 +107,12 @@ }; }; }; + boot.loader = { - efi = { - canTouchEfiVariables = true; - efiSysMountPoint = "/boot"; - }; grub = { enable = true; - device = "nodev"; # For UEFI; installs to ESP - efiSupport = true; - useOSProber = false; # Avoid scanning sdb + device = "/dev/sda"; # Install only on sda (avoids sdb) + useOSProber = false; # Don't scan other disks }; };