feat: use part labels instead of uuids in hardware config

This commit is contained in:
2026-05-21 10:30:53 +02:00
parent 0521e895a2
commit 3f7d4343fc
2 changed files with 35 additions and 23 deletions
+5 -3
View File
@@ -15,12 +15,12 @@
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/0eb29109-abd1-49af-859a-1c5009e2482f";
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/EE00-3849";
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = [
"fmask=0077"
@@ -28,7 +28,9 @@
];
};
swapDevices = [ ];
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's