From 8402088a2722594c7bacc076e95f8d258eb020ef Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 30 Jul 2025 17:13:47 +0200 Subject: Add new Lao disk with consultancy work files Signed-off-by: Mel --- machines/moissanite/devices.nix | 44 ++++++++++++++++++++++++++++------------- 1 file 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; } -- cgit 1.4.1