Not vouching for it working on a MacBook, and it sure ain't "modern", but you might love poking around in QNX. 1.44 MB was plenty for everything.
https://crackberry.com/heres-how-qnx-looked-1999-running-144...
These days, most people would run it in qemu, e.g. https://www.youtube.com/watch?v=xqILeQ-Cg-A