.
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 = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
bios_boot = {
|
||||||
|
size = "2MiB";
|
||||||
|
type = "EF02"; # BIOS boot partition (unformatted)
|
||||||
|
content = null; # No filesystem
|
||||||
|
};
|
||||||
ESP = {
|
ESP = {
|
||||||
|
# Optional for hybrid, but harmless
|
||||||
size = "512M";
|
size = "512M";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
|
|
@ -54,7 +60,6 @@
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
root = {
|
root = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
|
|
@ -102,16 +107,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "nodev"; # For UEFI; installs to ESP
|
device = "/dev/sda"; # Install only on sda (avoids sdb)
|
||||||
efiSupport = true;
|
useOSProber = false; # Don't scan other disks
|
||||||
useOSProber = false; # Avoid scanning sdb
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue