summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machines/moissanite/devices.nix42
1 files changed, 29 insertions, 13 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
+ 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
- ];
- };
+ # 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;
}