This commit is contained in:
Raphael Numbus
2025-12-06 22:40:51 +01:00
parent e2fa6093c8
commit f5cf9d8c53
+2 -2
View File
@@ -474,13 +474,13 @@ EOF
done done
[[ "$NUMBER_OF_PARITY_DISKS" -gt 0 ]] && echo -e "\n ✅ Generated $NUMBER_OF_PARITY_DISKS parity disk configuration(s)." [[ "$NUMBER_OF_PARITY_DISKS" -gt 0 ]] && echo -e "\n ✅ Generated $NUMBER_OF_PARITY_DISKS parity disk configuration(s)."
# Close the disko.nix block
cat <<'EOF' >> ./nix-config/disks/disko.nix cat <<'EOF' >> ./nix-config/disks/disko.nix
}; };
}; };
} }
EOF EOF
echo -e "\n ✅ Final disko configuration created."
echo -e "\n ✅ Final disko configuration created.
# --> Generate automatic unlock configuration in ./nix-config/disks/snapraid.nix # --> Generate automatic unlock configuration in ./nix-config/disks/snapraid.nix
if [[ "$NUMBER_OF_CONTENT_DISKS" -gt 0 || "$NUMBER_OF_PARITY_DISKS" -gt 0 ]]; then if [[ "$NUMBER_OF_CONTENT_DISKS" -gt 0 || "$NUMBER_OF_PARITY_DISKS" -gt 0 ]]; then