refactor: switch from using UUIDs for filesystems to partlabels. Requires partition modifications on hosts before rebuild

This commit is contained in:
2026-10-22 11:13:06 -04:00
parent 685c709937
commit ba69916e0e
5 changed files with 96 additions and 103 deletions
@@ -0,0 +1,27 @@
{ _, ... }:
{
# REQUIRED PARTLABELS (can be set in parted or other tools NOT!!! FILESYSTEM LABEL!)
# / - NIXOS
# /boot - ESP
# swap - SWAP
fileSystems = {
"/" = {
device = "/dev/disk/by-partlabel/NIXOS";
fsType = "xfs";
};
"/boot" = {
device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [
{ device = "/dev/disk/by-partlabel/SWAP"; }
];
}