NixOS VM on Mac Setup
Mitchell Hashimoto1 HN recommender · recommended in 1 month, 2022–2024
tutorial · intermediate · 2022–2024 on HN
Mitchell Hashimoto walks through his setup for running a NixOS virtual machine on a Mac as his development environment, with a config repo on GitHub.
HN points to it as a practical reference for the Linux-VM-on-Mac workflow and as an entry point to NixOS.
Up next
7 mo on HNEverything is a Remix (Original Series)
Kirby Ferguson
7 HN recommender · 2017–2026
9 mo on HNUsing Python to Code by Voice
Next Day Video
12 HN recommender · 2013–2025
14 mo on HNThe Tragedy of systemd
linux.conf.au
16 HN recommender · 2019–2025
10 mo on HNThe Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013)
Mladen Mijatov
13 HN recommender · 2013–2026
9 mo on HNLISA11 - Fork Yeah! The Rise and Development of illumos
USENIX
9 HN recommender · 2012–2026
8 mo on HNTech Talk: Linus Torvalds on git
Google
9 HN recommender · 2007–2023
7 mo on HNDebConf 14: QA with Linus Torvalds
Adnan Hodzic
7 HN recommender · 2014–2021
6 mo on HNGtk to Qt - a strange journey [linux.conf.au 2014]
Konstantin Bläsi
5 HN recommender · 2014–2024
6 mo on HNUser-level threads....... with threads. - Paul Turner - Google
Linux Plumbers Conference
6 HN recommender · 2013–2024
5 mo on HNUsing a 1930 Teletype as a Linux Terminal
CuriousMarc
4 HN recommender · 2020–2025
5 mo on HNHow I Designed a Free Music Font for 5 Million Musicians (MuseScore 3.6)
Tantacrul
5 HN recommender · 2021–2024
5 mo on HNNSA operation ORCHESTRA: Annual Status Report
HUP
9 HN recommender · 2014–2019
5 comments from Hacker News
Just run Linux in a VM! It's my preferred workflow nowadays. See: link ▶ this video Only real limitations are lack of ML because no server/desktop-grade GPU and some missing ARM-based docker containers. But the latter is slowly being resolved and the former isn't gonna happen on a laptop anyways.
Personally been working on replacing “brew” with “nix” for package management. Eventually using VMs spun up with qemu to emulate nixOS on my Mac for primary dev environment. Similar to hashicorp founder setup found here (except hoping to not use “parallels or vm ware fusion”: ▶ this video
My general setup mirrors this[1] pretty closely, though of course on Windows I can just use WSL2. [1]: ▶ this video
3 of the 4 items that the author mentioned can be solved with using NixOS inside a VM on your mac :) Inspired by Mitchell Hashimoto's VMWare setup[0]. I setup my own computer in such a way, I now have the best of both worlds. Developing on a linux machine, where I can control everything if I wanted (down to the OS) and the ease of Notes/iMessages whenever I need it. Window management is a pita because of internal APIs and the fact that Apple doesn't cater to people that actually care about these tools. Check out Yabai[1] which btw requires you to disable SIP (System Integrity Protection) if you want to use its full potential. Instead you can run NixOS and choose your favourite window/tiling manager (i3). Package manager: I still run Nix but I am not that happy with it. Either I need to spend some more time or look for an alternative. One of the problems is the ability to easily pin older versions. [0] - ▶ this video [1] - link
I got interested in NixOS after watching link and ▶ this video I use fedora since long time and so far is quite stable without any non-sense