Refurbished ARM-based MacBook Air will be suitable as long as you get 16 or 32 GB configuration. Anything under 16 is unusable with docker, a browser, an IDE, and LSP running at the same time.
ARM-based Macs can run Linux thanks to Asahi Linux.
But I love and use Mac OS. It’s really good for development work.
spawn daemon