From 411602061bee10d9cd5b88785333fd7833cbc1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikodem=20Rabuli=C5=84ski?= Date: Sun, 24 Mar 2024 18:03:53 +0100 Subject: [PATCH] hosts/hijiri-vm/disks: migrate to new partition scheme --- hosts/hijiri-vm/disks.nix | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/hosts/hijiri-vm/disks.nix b/hosts/hijiri-vm/disks.nix index 09a8db0..b412ba2 100644 --- a/hosts/hijiri-vm/disks.nix +++ b/hosts/hijiri-vm/disks.nix @@ -7,25 +7,23 @@ in type = "disk"; device = bootDevice; content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "EFI"; + type = "gpt"; + partitions = { + esp = { + label = "EFI"; + priority = 1; start = "1MiB"; end = "128MiB"; - fs-type = "fat32"; - bootable = true; + type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; - } - { - name = "LINUX"; - start = "128MiB"; - end = "100%"; + }; + linux = { + label = "LINUX"; + size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; @@ -47,8 +45,8 @@ in }; }; }; - } - ]; + }; + }; }; }; }