Files
disko/example/legacy-table.nix
lennartandMichael Hoang 558e84658d example: add comments as warning about legacy table type
Just did the mistake to copy and paste one legacy table type example.
Ran into the warning and was a bit sad.

Adding these comments while referring to the documentation could help
some undercaffeinated disko users like me.
2026-01-18 09:19:06 +00:00

46 lines
1.1 KiB
Nix

# This example with the legacy table should not be used. We recommend using the
# gpt type instead. More information about this warning may be found in the
# documentation.
#
# https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md
{
disko.devices = {
disk = {
main = {
device = "/dev/sda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}