From 4bfd65acb3df9cef5287aa2d8e16a5a422def8de Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:28:13 +0000 Subject: [PATCH] fix: new disko format of disks wouldn't boot --- disks/root.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/disks/root.nix b/disks/root.nix index b407db0..ded97f1 100644 --- a/disks/root.nix +++ b/disks/root.nix @@ -7,24 +7,28 @@ type = "gpt"; partitions = { # Boot partition - ESP = { + ESP = rec { size = "512MiB"; type = "EF00"; + label = "boot"; + device = "/dev/disk/by-label/${label}"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; - extraArgs = [ "-n boot" ]; + extraArgs = [ "-n ${label}" ]; }; }; # Root partition ext4 - root = { + root = rec { size = "100%"; + label = "nixos"; + device = "/dev/disk/by-label/${label}"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; - extraArgs = [ "-L nixos" ]; + extraArgs = [ "-L ${label}" ]; }; }; };