I did the same thing – I had an private cabin in a co-working space for some time and then moved out to a larger apartment with a dedicated office room. It's been working pretty well so far, although I have make sure I go out for workout and some tea every day to prevent myself from going insane.