I am a city council member in small city (9,000) which owns and operates a municipal electric power plant. We have 4 large diesel generators, two large wind turbines and a few fields of solar panels.
It is nice having power on 24/7, if there is an outage we simply fire up a diesel generator and power is restored in just a few minutes.
We do have to buy power on the grid but also have times where we sell power back (summer, when people use AC prices go up and our solar panels typically generate excesss and profit)
The price of power is almost identical to those outside of the city. Honestly keeping as many derives local really has been a win/ win for our community.