{ config, lib, ... }: ### --> MergerFS setup fileSystems."/mnt/data-storage" = { device = "/mnt/content-*"; fsType = "fuse.mergerfs"; options = [ "category.create=ff" "cache.files=partial" "dropcacheonclose=true" "defaults" "allow_other" "moveonenospc=1" "minfreespace=50G" "func.getattr=newest" "fsname=mergerfs_data" "x-mount.mkdir" ]; }; ### MergerFS setup <-- ### --> SnapRAID setup services.snapraid = { enable = true; contentFiles = [ $SNAPRAID_CONTENT_FILES ]; parityFiles = [ $SNAPRAID_PARITY_FILES ]; dataDisks = { $SNAPRAID_DATA_DISKS }; }; ### SnapRAID setup <-- }