Bunch of updates:
- Image Preview optimization - Faster mobile app, reduced RAM usage
- PHP-FPM tuning - RAM savings on NanoPi NEO3
- USB UUID tracking system - If a usb gets unplugged, Nextcloud keeps the external storage aside for potential future use (ie. the same device gets replugged). This results to previews being reused across USB unplug/replug cycles! (and even fewer sd-card writes ;) )
- Preview reuse - No regeneration on replug (saves CPU/RAM/SD writes)
- Clean UI - Hidden storage when USB unplugged, visible when replugged (when unplugged goes to "disabled storage" nextcloud group)
- Conflict handling - Duplicate USB labels handled correctly
- File scanning - Ensures any files added to the usb while it was away, appear in UI
Key files modified:
- base/nextcloud.nix - Preview settings
- base/mounter.sh - Complete USB tracking implementation
- hardware/Nanopi-neo3.nix - PHP-FPM worker limits
- base/configuration.nix