disko: add simple single-disk partitioning
This commit is contained in:
parent
aab03f0f14
commit
455fbc9207
38
2configs/fs/disko/single-disk-ext4.nix
Normal file
38
2configs/fs/disko/single-disk-ext4.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ disk ? "/dev/sda", ... }: {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
disk1 = {
|
||||
device = disk;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "ESP";
|
||||
start = "1MiB";
|
||||
end = "500MiB";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "root";
|
||||
start = "500MiB";
|
||||
end = "100%";
|
||||
part-type = "primary";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue