Magic, mostly. We had areas where fungi and crops that don't need sunlight can grow on their own, but there was always need for a more varied assortment of food as options for import were limited so we figured out ways with different lighting spells. It's not too dissimilar to what Jester and Caduceus rigged up for the tree on top of the house, actually, with the enchanted jars of daylight.