mirror of
https://github.com/nix-community/disko
synced 2024-11-12 23:27:07 +00:00
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
|
{disks ? ["/dev/sda"], ...}: {
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
main = {
|
||
|
type = "disk";
|
||
|
device = builtins.elemAt disks 0;
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
efiGptPartitionFirst = false;
|
||
|
partitions = {
|
||
|
TOW-BOOT-FI = {
|
||
|
priority = 1;
|
||
|
type = "EF00";
|
||
|
size = "32M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = null;
|
||
|
};
|
||
|
hybrid = {
|
||
|
mbrPartitionType = "0x0c";
|
||
|
mbrBootableFlag = false;
|
||
|
};
|
||
|
};
|
||
|
ESP = {
|
||
|
type = "EF00";
|
||
|
size = "512M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|