update disko config to new format

This commit is contained in:
Noah Masur 2024-02-18 09:41:48 -05:00
parent ea67467cbf
commit 1e9401eef2

View File

@ -4,38 +4,30 @@
type = "disk"; type = "disk";
device = disk; device = disk;
content = { content = {
type = "table"; type = "gpt";
format = "gpt"; partitions = {
partitions = [
# Boot partition # Boot partition
{ ESP = {
name = "ESP"; size = "512MiB";
start = "0"; type = "EF00";
end = "512MiB";
fs-type = "fat32";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
extraArgs = [ "-n boot" ]; extraArgs = [ "-n boot" ];
}; };
} };
# Root partition ext4 # Root partition ext4
{ root = {
name = "root"; size = "100%";
start = "512MiB";
end = "100%";
part-type = "primary";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
extraArgs = [ "-L nixos" ]; extraArgs = [ "-L nixos" ];
}; };
} };
]; };
}; };
}; };
}; };