.
This commit is contained in:
parent
544c72b7b2
commit
ce41d1ef4e
1 changed files with 9 additions and 8 deletions
17
flake.nix
17
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
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue