I'd like my server to run ubuntu server OS on the M.2 drive, on that OS I'd like to create a cloud server by running nextCloud on a difference instance and have all the nextCloud data to be stored on a separate hard drive, and then I'd like the sever to also run another instance to use it as a time Machine backup for my mac and store all of its data and backups on another separate hard drive. How would I achieve this?
(I'd also later down the line to be able to add more instances to run some web apps and home automation scripts etc.)