mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
simple-efi example in HowTo.md to new disko API
This commit is contained in:
1 parent
2bf4fc166b
commit
07dd3af980
1 file changed
+24
-29
+24
-29
@@ -113,37 +113,32 @@ or with pinning:
|
|||||||
{
|
{
|
||||||
# checkout the example folder for how to configure different disko layouts
|
# checkout the example folder for how to configure different disko layouts
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.sda = {
|
disk = {
|
||||||
device = "/dev/sda";
|
vdb = {
|
||||||
type = "disk";
|
device = "/dev/disk/by-id/some-disk-id";
|
||||||
content = {
|
type = "disk";
|
||||||
type = "table";
|
content = {
|
||||||
format = "gpt";
|
type = "gpt";
|
||||||
partitions = [
|
partitions = {
|
||||||
{
|
ESP = {
|
||||||
name = "ESP";
|
type = "EF00";
|
||||||
start = "1MiB";
|
size = "100M";
|
||||||
end = "100MiB";
|
content = {
|
||||||
bootable = true;
|
type = "filesystem";
|
||||||
content = {
|
format = "vfat";
|
||||||
type = "filesystem";
|
mountpoint = "/boot";
|
||||||
format = "vfat";
|
};
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
};
|
||||||
}
|
root = {
|
||||||
{
|
size = "100%";
|
||||||
name = "root";
|
content = {
|
||||||
start = "100MiB";
|
type = "filesystem";
|
||||||
end = "100%";
|
format = "ext4";
|
||||||
part-type = "primary";
|
mountpoint = "/";
|
||||||
bootable = true;
|
};
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/";
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user