From b7299fea0639a7cf08c146bbe6ee6cbe24243af3 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Fri, 19 Dec 2025 16:17:10 +0000 Subject: [PATCH] feat(minion): use labels for drives Change-Id: oqywmpqruopzlkzlzympxznvslslylsq I've just switched over to a new, larger, SSD. This led to a repartition which means my drive UUIDs became wrong. Rather than copy down the new UUIDs, I decided it was nicer to use the drive labels - which also works --- packetmix/systems/redhead/hardware-configuration.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packetmix/systems/redhead/hardware-configuration.nix b/packetmix/systems/redhead/hardware-configuration.nix index 6b14c2eb..6894b9da 100644 --- a/packetmix/systems/redhead/hardware-configuration.nix +++ b/packetmix/systems/redhead/hardware-configuration.nix @@ -37,13 +37,13 @@ }; fileSystems."/" = { - device = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45"; + device = "/dev/disk/by-label/persist"; fsType = "btrfs"; options = [ "subvol=@" ]; }; fileSystems."/nix" = { - device = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45"; + device = "/dev/disk/by-label/persist"; fsType = "btrfs"; options = [ "subvol=@nix" ]; }; @@ -53,13 +53,13 @@ clicks.storage.impermanence = { enable = true; devices = { - root = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45"; - persist = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45"; # Not a typo - using subvol=@persist on fileSystems."/persist" to put in a specific subvolume + root = "/dev/disk/by-label/persist"; + persist = "/dev/disk/by-label/persist"; # Not a typo - using subvol=@persist on fileSystems."/persist" to put in a specific subvolume }; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/6181-C692"; + device = "/dev/disk/by-label/BOOT"; fsType = "vfat"; options = [ "fmask=0077" -- 2.43.0