summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hardware-configuration.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
index cb9d265..d54f90a 100644
--- a/hardware-configuration.nix
+++ b/hardware-configuration.nix
@@ -3,8 +3,25 @@
   boot.loader.grub.device = "/dev/vda";
   boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
   boot.initrd.kernelModules = ["nvme" "btrfs"];
-  fileSystems."/" = {
-    device = "/dev/vda3";
-    fsType = "btrfs";
+  fileSystems = {
+    "/" = {
+      device = "tmpfs";
+      fsType = "tmpfs";
+      options = ["defaults" "size=2G" "mode=755"];
+    };
+    "/nix" = {
+      device = "/dev/vda3";
+      fsType = "btrfs";
+      options = ["subvol=nix" "compress-force=zstd"];
+    };
+    "/srv" = {
+      device = "/dev/vda3";
+      fsType = "btrfs";
+      options = ["subvol=storage" "compress-force=zstd"];
+    };
+    "/etc/nixos" = {
+      device = "/srv/nix-config";
+      options = ["bind"];
+    };
   };
 }