Switch to Linux. Using MacOS locks you into proprietary hardware. By focusing on the software rather than the hardware, you can switch hardware manufactures as they oscillate in quality. Going with something like NixOS would make this even easier as your operating system setup could easily be migrated to another machine when the time comes.
While NixOS in principle would make switching between hardware manufacturers easier, working with NixOS is anything but easy. Don't expect to run anything that isn't packaged. Don't expect packaging some binary blob for NixOS is easy.
The problem isn't that it's not easy. It is easy. The problem is that it's an entirely new ecosystem and language, and takes time to learn. But it's worth it.