disko/example/legacy-table.nix

41 lines
871 B
Nix
Raw Permalink Normal View History

2023-07-17 21:14:32 +00:00
{
disko.devices = {
disk = {
2024-07-19 19:17:48 +00:00
main = {
2023-07-17 21:14:32 +00:00
device = "/dev/sda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
2023-07-17 21:14:32 +00:00
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
2023-07-17 21:14:32 +00:00
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}