I specifically maintain an office away from the rest of the community that I use for writing. Not a terribly large room, but it is one that has limited lighting, dark, rich coloration, is on the cooler side and perhaps could be called akin to a very, very small library and or museum. I keep to myself as it is, but unless I am out and about from either of my quarters, it is known that I am not looking to be social. The other members do visit from time to time, but more often than not I am left to myself and the environment is generally quiet; the other animals do not venture up to it and are forbidden from it as it is.
On finer days I keep the window open and allow the natural ambiance to work for me, most preferably in the early morning as even a distant roadway sound becomes audible. If I am not opting to write anything I do keep something on in the background, usually something of my interests to study, but as it goes I need quiet and only natural interference to write. Otherwise it becomes a game of tuning the world out to focus on the writing and not attuning myself to even the sounds of the keystrokes. No less, writing with closed eyes functions far, far better for me and consistently allows me a higher quality of work; seeing what it is I write distracts and slows me. Usually my inspiration is just innate and nothing around me is permitted to be distracting or intrusive.
Failing this? I tend not to write at all unless business requires me to.