mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
41 lines
876 B
Nix
41 lines
876 B
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
vdb = {
|
||
|
device = "/dev/sda";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "table";
|
||
|
format = "gpt";
|
||
|
partitions = [
|
||
|
{
|
||
|
name = "ESP";
|
||
|
start = "1MiB";
|
||
|
end = "100MiB";
|
||
|
bootable = true;
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
}
|
||
|
{
|
||
|
name = "root";
|
||
|
start = "100MiB";
|
||
|
end = "100%";
|
||
|
part-type = "primary";
|
||
|
bootable = true;
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|