I have done it more than once
actually 3 different homes in the last 20 years.
Solar is no different than any other trade, if you do turn-key, one just write a check and it is done. That covers much more than material costs and a rule of thumb is 2X-3X material costs for a business to stay in business working for clients.
If your going to do a DYI permitted system, you have the parts costs, labor is zero but engineering can have costs as permit packages require PE ( professional engineer ) to validate the system design being submitted meets all codes which are both electrical and mechanical.
Nothing was unexpected in my case, it requires substantial reading, learning codes, finding vendors for the parts and the PE service ( GreenLancer is whom I last used ) to provide content for the permit package.
Forums such as this has just about all the answers one would should need or pointers where to go.
In the end, you either can earn a wage which is then traded to another company ( money ) or your labor is used on your project at no compensation for doing what they would do, probably 95% just write the check as they make more in wages for the hours, this is true for just about all trades, solar is not special in anyway in this regard.