From ddf1ddb1b2af8663046970d04c047b61f76acdfe Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 7 Aug 2023 21:41:11 +0100 Subject: [PATCH] refactor(nixos): define devices by label --- system/nixos/nixedo/hardware-configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/nixos/nixedo/hardware-configuration.nix b/system/nixos/nixedo/hardware-configuration.nix index 127aef0..54a37b4 100644 --- a/system/nixos/nixedo/hardware-configuration.nix +++ b/system/nixos/nixedo/hardware-configuration.nix @@ -17,17 +17,17 @@ hardware.enableAllFirmware = true; fileSystems."/" = { - device = "/dev/disk/by-uuid/7c6d69ec-ba06-4ddb-b9c4-62b3994fda91"; + device = "/dev/disk/by-label/nixos"; fsType = "ext4"; }; fileSystems."/boot/efi" = { - device = "/dev/disk/by-uuid/B729-9A75"; + device = "/dev/disk/by-label/boot"; fsType = "vfat"; }; swapDevices = - [{ device = "/dev/disk/by-uuid/5db0a0e6-93fb-4d0b-8fb0-fdb3cb76b89d"; }]; + [{ 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