There is an interesting part about solar generating electricity when its sunny - it will help population move to warmer climes. If you live in Ohio heating in winter is a problem, solar isn't going to keep you warm on a cold night (ok batteries can help but they're expensive). If you live in the South West though its perfect as Winter nights dont require much heat and the biggest loads are AC at the times when there…
You could probably invest in a thermal mass hybrid HVAC system e.g. use solar during the day to heat or cool a large thermal mass (thick interior concrete wall/floor to whatever temperature you need it to be at night.
There are both passive and active options.
You need to drill pretty deep and have multiple wells, or have alot of land surface area and excavate (not too deep though).
Other option is using water from a well or spring and dumping that water back into another well or stream (with an increase in water temp.).