Bitcoin mining could be done using solar only, not generating CO2.
Renewable sources of energy should always be in consideration, apart from solar power which can be harnessed, we also have geothermal energy, tidal, wind, water amongst the list. Although implementation may be different in various places, it is best that the one most abundant to you is harnessed for bitcoin mining purpose.