Mars gets less sunlight on a good day for solar power; the inverse cube law really hits you harder than you'd think. And that's before accounting for the planet wide dust storms that can last for months.
We're probably looking at nuclear fission generators to get started, then converting to geothermal at any appreciable (and maybe fusion, inshallah).