diff --git a/README.md b/README.md index b80142a..6b20255 100644 --- a/README.md +++ b/README.md @@ -103,37 +103,29 @@ Here’s an example of a simple disk configuration: type = "disk"; device = builtins.elemAt disks 0; content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "boot"; - start = "0"; - end = "1M"; - flags = [ "bios_grub" ]; - } - { - name = "ESP"; - start = "1M"; - end = "512M"; - bootable = true; + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; # for grub MBR + }; + ESP = { + size = "511M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; - } - { - name = "root"; - start = "512M"; - end = "100%"; + }; + root = { + size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; - } - ]; + }; + }; }; }; };