Is it possible to use something like dietpi, install nextcloud as well as have a NAS in the same thing accessing the same files? What I would like is a system where I can access the NAS via my Linux or windows machines through something like samba share and also be able to access the same files via nextcloud on let's say a phone via the nextcloud app. If this is possible please can you guide me on how to do this? Thank you.
Edit 1:
Seems like people are misunderstanding my question. What I wanted to have is a single raspberry pi 3 with a samba Nas on it as well as it being a nextcloud server at the same time on the same device
Edit 2:
Would anyone know of any tools that can help me achieve this on a raspberry pi 3? If this is with dietpi then brilliant.