The Phenomenon
The office didn't make you more disciplined. It made discipline unnecessary.
Every environmental cue - the commute, the desk, colleagues arriving - was silently firing behavior signals in your brain before you even sat down. This is sometimes called context-dependent behavior: your brain bundles actions with the environments where they repeatedly occur. Do something in the same place enough times, and the place itself becomes the trigger.
Remove the place - and the trigger disappears with it.
A large share of daily behaviors are automatic responses to environmental cues rather than conscious decisions. When you moved home, you didn't lose your work ethic. You lost the scaffold that was doing most of the work for you.
The result: your brain has to generate the initiation signal from scratch, every single day. That's cognitively expensive - and it's why the gym, the morning routine, and the new desk setup all work for a week and then stop. They add temporary cue value. Once they're familiar, the value evaporates.