You can share a keyboard and mouse across multiple Windows and macOS computers, if you know the right tools to use.
I've come to a situation where I have a desk that is used by more than one mac (though never at the same time). The desk is set up with a nice USB-C/TB3 dock with stuff attached (audio, ethernet, ...
If you are in need of a set of budget peripherals for your Mac, the Logitech MK270 Keyboard Combo will work well with both your desktop and your wallet's needs. We desperately needed an ergonomic ...