Solar power is very well matched to the cooling needs of building, considering tide buildings need cooling as a direct result of the sunlight falling on them!
Batteries are the secret. Stationary units can be less expensive types than mobile units because they don't need to be lightweight or compact.
Power utilities themselves are the ones doing the math and finding that renewables, specifically a combination of wind, solar and batteries, is more cost effective than fossil fuels, which is itself cheaper than nuclear.