{ config, lib, ... }: ### --> MergerFS setup { fileSystems."/mnt/data-storage" = { device = "mergerfs"; fsType = "fuse"; options = [ "defaults" "allow_other" "use_ino" "cache.files=off" "moveonenospc=true" "category.create=mfs" "srcmounts=$MERGERFS_MOUNTS" ]; }; ### MergerFS setup <-- ### --> SnapRAID setup services.snapraid = { enable = true; contentFiles = [ $SNAPRAID_CONTENT_FILES ]; parityFiles = [ $SNAPRAID_PARITY_FILES ]; dataDisks = { $SNAPRAID_DATA_DISKS }; }; ### SnapRAID setup <-- }