#1 can be solved by renting a co-working space if troubles at home are really that severe. I doubt that #2 is really any different than if you are unmotivated while in the office. If anything, one unmotivated employee in the office can more easily spread that lack of motivation to their co-workers.