Bingo! IMO, laptops are best used as thin clients and you do the heavy lifting on servers or a box in a closet somewhere.
I'va been migrating my workflow to this approach and I'm an embedded dev! My closet does have hw strewn about but once you set it up that you don't have to touch wires it's super convenient.
My one gripe with MacBook airs up to m4 was support for only one external monitor. But m4 fixed this.
I thought the single external monitor support was only with the M1. Wild it went on after that
I'm not sure about this being the best approach. It just works for me sometimes.