From a3455a0b31f9ca0479fce424a93924cd44fb7083 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 25 Jan 2025 19:02:42 +0000 Subject: [PATCH] add cloudnix hardware --- hosts/cloudnix/hardware-configuration.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hosts/cloudnix/hardware-configuration.nix b/hosts/cloudnix/hardware-configuration.nix index cd814a8..db241d3 100644 --- a/hosts/cloudnix/hardware-configuration.nix +++ b/hosts/cloudnix/hardware-configuration.nix @@ -14,36 +14,41 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + { device = "/dev/disk/by-uuid/2aec8052-68fc-4bac-9b8d-c10b9b659ad8"; fsType = "btrfs"; options = [ "subvol=root" ]; }; fileSystems."/.swapvol" = - { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + { device = "/dev/disk/by-uuid/2aec8052-68fc-4bac-9b8d-c10b9b659ad8"; fsType = "btrfs"; options = [ "subvol=swap" ]; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/FB93-E33C"; + { device = "/dev/disk/by-uuid/1DE3-CACA"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; fileSystems."/nix" = - { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + { device = "/dev/disk/by-uuid/2aec8052-68fc-4bac-9b8d-c10b9b659ad8"; fsType = "btrfs"; options = [ "subvol=nix" ]; }; fileSystems."/persist" = - { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + { device = "/dev/disk/by-uuid/2aec8052-68fc-4bac-9b8d-c10b9b659ad8"; fsType = "btrfs"; options = [ "subvol=persist" ]; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/.swapvol/swapfile"; + size = 2 * 1024; + } + ]; # 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