Try to get mergerFS working

This commit is contained in:
Raphaël Numbus
2026-01-03 11:24:49 +01:00
parent 917e5118c9
commit 13a3ea3836
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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
+3
View File
@@ -5,6 +5,9 @@
fileSystems."/mnt/data-storage" = {
device = "/mnt/content-*";
fsType = "fuse.mergerfs";
depends = [
$MERGERFS_DEPENDS
];
options = [
"category.create=ff"
"cache.files=partial"