IMHO probably NextCloudPi would be the most appropriate solution for you.
Please be aware that NC 17 cannot be called stable and one should consult the documentation:
- NC 16 Admin Docs » Installation and server configuration
- NC 16 Admin Docs » Upgrade manually
- Debian System Administration
- The Programming Historian - Introduction to the Bash Command Line
- Debian Installation manual
- The Debian Administrator’s Handbook - Unfortunately, looks as if stuck with Jessie but may be still a valuable source of advice for any system admin aware of the deviations to a more current stable install or to a different flavour of Linux also.
More general advice: Avoid exotic experiments without due cause and stick to the more known Un*x flavours. Naturally, you can choose Ubuntu, CentOS, FreeBSD, ArchLinux and probably NextCloudPi or other flavours besides Debian Linux. Also available are some other OS …
Have a look here for macOS client background and possible trials:
Do not hesitate to come around again and tell us of your new results. Good luck.
Happy hacking.