If you have access to geothermal energy in sufficiently reliable and abundant quantities, then the use of sulfur lamps solves the light problem pretty neatly. Not a 'perfect' match for sunlight, but pretty damn close.
https://en.wikipedia.org/wiki/Sulfur_lampYou can see that sulfur lamp has a nice continuous emission spectral gradient, which is far superior what is typically found in CFLs or LEDs, which have very efficient, and very strong peaks of emission in narrow bands of the spectrum. Sulfur lamp is more of a black body emitter by nature, so it emits a nice full spectrum. However, you can also see that it favors photons that are more "greenish" in terms of human perception, which is the frequency range REJECTED by photosynthetic plant life. Adding the lithium, sodium, or potassium bromide/iodide salts to alter its emission spectra is highly encouraged, as it will bump the photon populations to favor orange/yellow light emission, which is what photosynthetic plants really want to eat.
For vitamin D synthesis, one can supplement the sulfur lamps with normal mercury vapor CFLs, with a bit less rare earth oxide powder on the inside. (so that you get more of the 'not so nice UV light' the excited mercury vapor produces.) That would "flavor" the sulfur lamp light a bit, and allow vitamin D synthesis "the natural way."
One could also conceivably just install a huge array of high intensity UV LEDs in light strips, and issue orange goggles to everyone to avoid premature blindness.
A potentially useful side effect of using geothermal energy, is that you need to diffuse the heat collected from the power generators. (You are injecting water into heated rock strata, which then turns into steam that turns turbines. You need to cool the steam off again to recycle the water. That means you need to dispose of the heat.) If you use the upper levels of the underground structure as a giant passive heatsink, you can use the thermal difference gradient to drive convection in the structure's atmosphere, and use the heat of the power plant to "stir" the air for you. One could conceivably get this for free, and without costly (and maintenance nightmare inducing) pumps/fans. (See for instance,
how a 'heat pipe' diffuser works. You would be using the whole complex as the heat pipe, the slightly humid air of the complex as the phase transitioning working fluid, the hot and cold parts of the complex as the two surfaces, and gravity to return the cooled fluid back to the hot side.)