If you have solar on every domestic rooftop, that also doesn't actually let you address realistic power consumption patterns.
If we're talking about not-yet-extant technology that would allow solar to meet 24/7 demand at grid scale (like power storage that costs 1% as much as it does now), we might as well be talking about small-scale-fusion power, which is also resistant to being bombed and is generally better than solar+batteries for other reasons.