If you’ve ever sat around wondering “why can’t we just hollow out an asteroid, make it spin, and then live on it?” know that you’re not alone. In fact, a research team from the University of Rochester did a semi-serious study of the matter and put together a comprehensive plan about how one might go about doing such a thing. It doesn’t require any exotic tech (though it’s a bit beyond what we’re currently capable of), and would “only” cost on the order of $34 billion according to the team.
I don’t see it in this particular paper, but I’ve seen other semi-serious proposals where you also build a partially reflective “mirror” in a fixed position away from the habitat so that it always gets indirect sunlight (and then I guess you just pull the curtains closed when it’s time to sleep :) )