summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/moissanite/devices.nix44
1 files changed, 30 insertions, 14 deletions
diff --git a/machines/moissanite/devices.nix b/machines/moissanite/devices.nix
index 273091f..aa70aa0 100644
--- a/machines/moissanite/devices.nix
+++ b/machines/moissanite/devices.nix
@@ -97,20 +97,36 @@
     jack.enable = true;
   };
 
-  fileSystems."/mnt/Dao" = {
-    device = "/dev/disk/by-label/Dao";
-    fsType = "btrfs";
-    options = [
-      "users" # any user can mount and unmount dao, implies 'noexec', 'nodev', 'nosuid'
-      "exec" # override 'users' 'noexec' default, executable files are nice!
-      "nofail" # it's okay if dao can't be found
-      "noatime" # do not update access timestamps (files+folders)
-      "x-gvfs-show" # show dao in (i.e.) nautilus
-
-      # btrfs options
-      "compress=zstd" # compress data with zstd, level 3
-    ];
-  };
+  fileSystems =
+    let
+      options = [
+        "users" # any user can mount and unmount dao, implies 'noexec', 'nodev', 'nosuid'
+        "exec" # override 'users' 'noexec' default, executable files are nice!
+        "nofail" # it's okay if dao can't be found
+        "noatime" # do not update access timestamps (files+folders)
+        "x-gvfs-show" # show dao in (i.e.) nautilus
+
+        # btrfs options
+        "compress=zstd" # compress data with zstd, level 3
+      ];
+    in
+    {
+      # disk with all my personal projects & life in general
+      "/mnt/Dao" = {
+        device = "/dev/disk/by-label/Dao";
+        fsType = "btrfs";
+
+        inherit options;
+      };
+
+      # disk with consultancy work-related things
+      "/mnt/Lao" = {
+        device = "/dev/disk/by-label/Lao";
+        fsType = "btrfs";
+
+        inherit options;
+      };
+    };
 
   services.btrfs.autoScrub.enable = true;
 }