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
+2 -33
View File
@@ -9,6 +9,7 @@
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../shared/fs-layouts/single-disk-btrfs.nix
];
boot = {
@@ -24,43 +25,11 @@
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
kernelModules = [ ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/2b88fa45-f012-4df6-b59c-5b45ee0fc6e8";
fsType = "btrfs";
};
"/home" = {
device = "/dev/disk/by-uuid/2b88fa45-f012-4df6-b59c-5b45ee0fc6e8";
fsType = "btrfs";
options = [ "subvol=home" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/2b88fa45-f012-4df6-b59c-5b45ee0fc6e8";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/679B-3FC0";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/2ef72da1-8c5b-449d-8460-0f5833bd856d"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {