If we're talking solely about solar, it's not that simple, since on-the-grid residential solar systems only generate power during the day (and not even always the entire day), and then pull power from the grid at night. For full self-sufficiency, you'd need to install battery systems in every house, and ensure that you have enough panels to pull in enough power during daylight hours to charge the batteries enough to cover all the no-sun hours.