Is solar the only solution? no. but for places like spain, france and italy, its a very cheap solution to handle peak aircon load. Thats without any kind of battery load shifting.
But!
Solar is not a replacement for nuclear. but currently its so cheap it means that poorer countries are now able to afford stable micro grids, something not possible before.