If your doomsday scenario with has so many solar panels and data centers that you can use AI, then it is not doomsday survival scenario. It is "something is a little broken" scenario.
The data centers are not realistic but having a home solar plus battery setup and a local AI could be just fine in the apocalypse.
Solar panels are everywhere. The only things that could stop them are a nuclear winter or targeted physical attacks. It's extremely unlikely that all the solar in a neighborhood will get destroyed.
When people talk about doomsday scenarios they usually don't mean a totally ruined world with absolutely nothing left. It's more like a war or pandemic that leaves half the population dead and society broke down.
Tech that's already built will stay there, and solar is not exactly high maintenance.