Unless you go completely off-grid then rooftop solar isn’t going to help with outages as they are turned off during outages to protect electrical workers and the power grid. [1] Your problem can be solved with home batteries.
1. https://www.paradisesolarenergy.com/blog/will-solar-panels-w...