Try to get mergerFS working
This commit is contained in:
@@ -518,6 +518,7 @@ EOF
|
||||
(envsubst < "templates/nix-config/disks/content.nix") >> final-nix-config/etc/nixos/disks/disko.nix
|
||||
SNAPRAID_CONTENT_FILES+=" \"/mnt/content-${j}/snapraid.content\""$'\n'
|
||||
SNAPRAID_DATA_DISKS+=" d${j} = \"/mnt/content-${j}\";"$'\n'
|
||||
MERGERFS_DEPENDS+=" \"/mnt/content-${j}\""$'\n'
|
||||
done
|
||||
echo -e "\n✅ Generated $CONTENT_DISK_NUMBER data disk configuration(s)."
|
||||
j=0
|
||||
@@ -532,6 +533,7 @@ EOF
|
||||
export SNAPRAID_CONTENT_FILES
|
||||
export SNAPRAID_DATA_DISKS
|
||||
export SNAPRAID_PARITY_FILES
|
||||
export MERGERFS_DEPENDS
|
||||
envsubst < templates/nix-config/disks/snapraid.nix > final-nix-config/etc/nixos/disks/snapraid.nix
|
||||
fi
|
||||
# Close the disko.nix block
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
fileSystems."/mnt/data-storage" = {
|
||||
device = "/mnt/content-*";
|
||||
fsType = "fuse.mergerfs";
|
||||
depends = [
|
||||
$MERGERFS_DEPENDS
|
||||
];
|
||||
options = [
|
||||
"category.create=ff"
|
||||
"cache.files=partial"
|
||||
|
||||
Reference in New Issue
Block a user