about summary refs log tree commit diff
path: root/hosts/phobos/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/phobos/hardware.nix')
-rw-r--r--hosts/phobos/hardware.nix34
1 files changed, 24 insertions, 10 deletions
diff --git a/hosts/phobos/hardware.nix b/hosts/phobos/hardware.nix
index 0ed7cec..9f75e04 100644
--- a/hosts/phobos/hardware.nix
+++ b/hosts/phobos/hardware.nix
@@ -7,8 +7,7 @@ in
 
   boot = {
     initrd = {
-      availableKernelModules =
-        [ "xhci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci" ];
+      availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci" ];
       kernelModules = [ ];
     };
     kernelModules = [ "kvm_intel" ];
@@ -16,14 +15,6 @@ in
     kernelParams = [ "net.ifnames=0" "biosdevname=0" "iomem=relaxed" ];
   };
 
-  fileSystems."/" = {
-    device = "/dev/disk/by-uuid/2a0ba6f5-a4ec-4614-9bd2-11b4a66d5d82";
-    fsType = "ext4";
-  };
-
-  # Define on which hard drive you want to install Grub.
-  boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only
-
   swapDevices = [ ];
 
   powerManagement.cpuFreqGovernor = powerMode;
@@ -54,4 +45,27 @@ in
     };
   };
 
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/9a450653-8369-4850-af4f-cbec7cac8a99";
+      fsType = "btrfs";
+      options = [ "subvol=root compress-force=zstd noatime" ];
+    };
+
+  fileSystems."/home" =
+    { device = "/dev/disk/by-uuid/9a450653-8369-4850-af4f-cbec7cac8a99";
+      fsType = "btrfs";
+      options = [ "subvol=home compress-force=zstd" ];
+    };
+
+  fileSystems."/nix" =
+    { device = "/dev/disk/by-uuid/9a450653-8369-4850-af4f-cbec7cac8a99";
+      fsType = "btrfs";
+      options = [ "subvol=nix compress-force=zstd noatime" ];
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/0A8B-3968";
+      fsType = "vfat";
+    };
+
 }