From 0ee966419a301a7623f806f58c52b8eab15efa9b Mon Sep 17 00:00:00 2001 From: Henri Dohmen Date: Wed, 14 May 2025 03:31:32 +0200 Subject: [PATCH] disks by-label --- host/roam/hardware-configuration.nix | 10 +++++----- host/solo/hardware-configuration.nix | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/host/roam/hardware-configuration.nix b/host/roam/hardware-configuration.nix index 8e4ebad..cada99b 100644 --- a/host/roam/hardware-configuration.nix +++ b/host/roam/hardware-configuration.nix @@ -26,7 +26,7 @@ boot.extraModulePackages = [ ]; fileSystems."/" = { - device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; + device = "/dev/disk/by-label/nixroot"; fsType = "btrfs"; options = [ "subvol=root" @@ -36,7 +36,7 @@ }; fileSystems."/home" = { - device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; + device = "/dev/disk/by-label/nixroot"; fsType = "btrfs"; options = [ "subvol=home" @@ -46,7 +46,7 @@ }; fileSystems."/nix" = { - device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; + device = "/dev/disk/by-label/nixroot"; fsType = "btrfs"; options = [ "subvol=nix" @@ -56,7 +56,7 @@ }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/332B-8C27"; + device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; options = [ "fmask=0022" @@ -64,7 +64,7 @@ ]; }; - swapDevices = [ ]; + swapDevices = [ { device = "/dev/disk/by-label/nixswap"; } ]; # 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 diff --git a/host/solo/hardware-configuration.nix b/host/solo/hardware-configuration.nix index 5808edb..c4177ab 100644 --- a/host/solo/hardware-configuration.nix +++ b/host/solo/hardware-configuration.nix @@ -26,12 +26,12 @@ boot.extraModulePackages = [ ]; fileSystems."/" = { - device = "/dev/disk/by-uuid/7554858a-648d-47d9-839a-6b66ef2b99d9"; + device = "/dev/disk/by-label/nix-fs"; fsType = "ext4"; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/8040-8FF4"; + device = "/dev/disk/by-label/NIX-BOOT"; fsType = "vfat"; options = [ "fmask=0077" @@ -40,7 +40,7 @@ }; swapDevices = [ - { device = "/dev/disk/by-uuid/9569220a-c151-44ca-a4db-037e63d314be"; } + { device = "/dev/disk/by-label/swap"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking