good idea,
That's what I plan to do, but with farms where I will keep an apartment in a shop building. Hope to have 3 across US so Ii can hop between them and avoid rotten weather, and be there for harvest to help out (sometimes mutually exclusive) .... earn my keep, cover my share of utilities.
You can often be a "boarder", if zoning doesn't allow two residences. Usually it just means removing the kitchen range, but micro, toaster, and roaster can stay
We've always built that capability into the homes we've done.
Living for free... (or at very low costs) that's a good objective for longevity