fix: new disko format of disks wouldn't boot

This commit is contained in:
Noah Masur 2024-02-19 14:28:13 +00:00
parent d636de890c
commit 4bfd65acb3

View File

@ -7,24 +7,28 @@
type = "gpt"; type = "gpt";
partitions = { partitions = {
# Boot partition # Boot partition
ESP = { ESP = rec {
size = "512MiB"; size = "512MiB";
type = "EF00"; type = "EF00";
label = "boot";
device = "/dev/disk/by-label/${label}";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
extraArgs = [ "-n boot" ]; extraArgs = [ "-n ${label}" ];
}; };
}; };
# Root partition ext4 # Root partition ext4
root = { root = rec {
size = "100%"; size = "100%";
label = "nixos";
device = "/dev/disk/by-label/${label}";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
extraArgs = [ "-L nixos" ]; extraArgs = [ "-L ${label}" ];
}; };
}; };
}; };