Almost completely autonomous villages can exist in the darkness of caves, but what about farming?
Large drawback is that you have to grow your crops outside, so my solution; Greenhouse, or Hothouse as some know it to be.
A separate building that lets you grow crops inside a cave, or just have a farming space above ground, that you can have no fear of getting killed in if you decide to afk.
Advantages:
Grow crops in caves/mines
Possible buff to crop q depending on soil that was imported.
Buff to grow time, allows the crops to grow xx% faster than on normal soil.
Can be fertilized by adding other crops to a bin/compost box.
Disadvantages:
Costs harder to get materials, like glass.
Due to having glass walls, can be more easily broken than regular houses.
Too small to macro a profitable amount in.
Need to import soil to keep soil quantity high enough to let crops proceed to next growth stage.
Other A/D to be added later.
Proceed to discussion.