diff --git a/example/legacy-table.nix b/example/legacy-table.nix index b022e8f..1df4f00 100644 --- a/example/legacy-table.nix +++ b/example/legacy-table.nix @@ -1,40 +1,38 @@ { - disko.devices = { - disk = { - main = { - device = "/dev/sda"; - type = "disk"; - content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "ESP"; - start = "1M"; - end = "500M"; - bootable = true; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - } - { - name = "root"; - start = "500M"; - end = "100%"; - part-type = "primary"; - bootable = true; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - } - ]; - }; - }; - }; + disko.devices.disk.main = { + device = "/dev/sda"; + type = "disk"; }; + + disko.devices.disk.main.content = { + type = "table"; + format = "gpt"; + }; + + disko.devices.disk.main.content.partitions = [ + { + name = "ESP"; + start = "1M"; + end = "500M"; + bootable = true; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + } + { + name = "root"; + start = "500M"; + end = "100%"; + part-type = "primary"; + bootable = true; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + } + ]; }