Hungary is already using that (today we were 90% carbon-free thanks to solar), the problem is what to do when it gets dark.
Batteries?
Starting this year, in Romania you cannot put new PV capacity online without the storage for it, is mandatory. Possibly for existing ones, but I am not sure.
"the problem is what to do when it gets dark"
Batteries (or pumped storage hydro, which is more like a gravity-driven capacitor)
Collect solar power in orbit (where sunlight is uninterrupted) and microwave[0] it to earth.
[0] https://en.wikipedia.org/wiki/Wireless_power_transfer#Microw...