Google has been doing all of that for decades. I remember when they started building their first data center (back when almost no companies required enough compute for an entire data center) they chose the location due to the cleanest energy they could find (hydroelectric on a river that wasn't blocking fish migration).