othemad
I wouldn't say it's a stupid idea, but I'm not sure what kind of setup you have in mind here.
In general, phones don't make good servers. And Nextcloud server is a particularly bloated piece of software. Even if it is technically possible, it seems unlikely that it would be reliable enough to be useful.