Microinverters can make this pretty easy if you are going to be grid tied. They are worth learning about.
If you are going to use batteries and not be grid tied you might look into microgrids or maybe community grids.
If it were me and I understand correctly I would probably not tie the systems together.
From what I have heard there is more than one way to skin it.