From 8ec54b44b948e06e7219ff0c5523940dc797fcd2 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 25 Jan 2025 18:02:27 +0000 Subject: [PATCH] add hardware config for cloudnix --- hosts/cloudnix/hardware-configuration.nix | 35 ++++++++++++++++------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/hosts/cloudnix/hardware-configuration.nix b/hosts/cloudnix/hardware-configuration.nix index ab544bc..cd814a8 100644 --- a/hosts/cloudnix/hardware-configuration.nix +++ b/hosts/cloudnix/hardware-configuration.nix @@ -14,21 +14,36 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/e12d0dfd-9753-44d4-b65f-dc5549db3edf"; - fsType = "ext4"; + { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/.swapvol" = + { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + fsType = "btrfs"; + options = [ "subvol=swap" ]; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/c29f698d-eb89-4618-be8b-046b4907aed8"; - fsType = "ext4"; + { device = "/dev/disk/by-uuid/FB93-E33C"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ - { - device = "/.swapfile"; - size = 2 * 1024; - } - ]; + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/persist" = + { device = "/dev/disk/by-uuid/540bb762-8085-47f0-8c99-90a22382362e"; + fsType = "btrfs"; + options = [ "subvol=persist" ]; + }; + + swapDevices = [ ]; # 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