From 949356323c09dd58002b3448ae9b18a6f6544b8f Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 22 Sep 2023 21:14:32 +0200 Subject: [PATCH] feat: switch to using labels for disks --- hosts/vm/hardware-configuration.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/vm/hardware-configuration.nix b/hosts/vm/hardware-configuration.nix index c51e446..c7699b5 100644 --- a/hosts/vm/hardware-configuration.nix +++ b/hosts/vm/hardware-configuration.nix @@ -14,12 +14,12 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/d023b129-caaa-46c4-9848-52c712760b2a"; + { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/aa498dcc-a914-4730-ae9d-ea23dca89ccb"; } + [ { device = "/dev/disk/by-label/swap"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking @@ -28,6 +28,7 @@ # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wg0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } -- 2.48.1