If you choose a manual or motorized standing desk with adjustable height (like the one I use), you can easily move the treadmill to the side when you're not walking and switch to working while seated.
I mean, you need to have the space to put the treadmill on the side, but other than that you'll have the flexibility to choose between walking and sitting as needed.