From 97870ea57f13e3e1c54d8509449e7a0d01b23a6d Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sat, 23 Sep 2023 23:04:52 +0200 Subject: [PATCH] feat: use labels in hw config, add data mount --- hosts/desktop/hardware-configuration.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 17f5f38..1c3861c 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -14,17 +14,23 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/07d58c58-8077-4dd1-aa73-4e6a1ae3260e"; + { device = "/dev/disk/by-label/nixroot"; fsType = "ext4"; }; + fileSystems."/data" = + { device = "/dev/disk/by-label/data"; + fsType = "ntfs-3g"; + options = [ "rw" "uid=1000" "gid=100" ]; + }; + fileSystems."/boot" = - { device = "/dev/disk/by-uuid/D1C8-F1D3"; + { device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/8725518d-1955-458a-9bdc-b7dba3e33226"; } + [ { device = "/dev/disk/by-label/swap"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking -- 2.48.1