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