From aca7f1866758db7a08cdd6a59e7f1d6d2e60cfe5 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 7 Jun 2023 13:54:53 +0200 Subject: [PATCH] example simple-efi: use table_gpt --- example/simple-efi.nix | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/example/simple-efi.nix b/example/simple-efi.nix index 459fdec..1d12941 100644 --- a/example/simple-efi.nix +++ b/example/simple-efi.nix @@ -5,33 +5,27 @@ device = builtins.elemAt disks 0; type = "disk"; content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "ESP"; - start = "1MiB"; - end = "100MiB"; - bootable = true; + type = "table_gpt"; + partitions = { + ESP = { + type = "EF00"; + start = "1M"; + end = "+100M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; - } - { - name = "root"; - start = "100MiB"; - end = "100%"; - part-type = "primary"; - bootable = true; + }; + root = { + end = "-0"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; - } - ]; + }; + }; }; }; };