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
+5
-5
packetmix/systems/redhead/hardware-configuration.nix
+5
-5
packetmix/systems/redhead/hardware-configuration.nix
···
37
};
38
39
fileSystems."/" = {
40
-
device = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45";
41
fsType = "btrfs";
42
options = [ "subvol=@" ];
43
};
44
45
fileSystems."/nix" = {
46
-
device = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45";
47
fsType = "btrfs";
48
options = [ "subvol=@nix" ];
49
};
···
53
clicks.storage.impermanence = {
54
enable = true;
55
devices = {
56
-
root = "/dev/disk/by-uuid/9ceb17f8-af04-42ae-9c5c-98b1e72c5a45";
57
-
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
58
};
59
};
60
61
fileSystems."/boot" = {
62
-
device = "/dev/disk/by-uuid/6181-C692";
63
fsType = "vfat";
64
options = [
65
"fmask=0077"
···
37
};
38
39
fileSystems."/" = {
40
+
device = "/dev/disk/by-label/persist";
41
fsType = "btrfs";
42
options = [ "subvol=@" ];
43
};
44
45
fileSystems."/nix" = {
46
+
device = "/dev/disk/by-label/persist";
47
fsType = "btrfs";
48
options = [ "subvol=@nix" ];
49
};
···
53
clicks.storage.impermanence = {
54
enable = true;
55
devices = {
56
+
root = "/dev/disk/by-label/persist";
57
+
persist = "/dev/disk/by-label/persist"; # Not a typo - using subvol=@persist on fileSystems."/persist" to put in a specific subvolume
58
};
59
};
60
61
fileSystems."/boot" = {
62
+
device = "/dev/disk/by-label/BOOT";
63
fsType = "vfat";
64
options = [
65
"fmask=0077"