NixOS VM on Mac Setup

Channel:Mitchell Hashimoto · Length:9:02 · Published:2021-10-25 · Views:31658

Watch on YouTube

Summary

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.

Why HN recommends it

HN points to it as a practical reference for the Linux-VM-on-Mac workflow and as an entry point to NixOS.

My general setup mirrors this[1] pretty closely — HN, 2022

Testing, debugging & developer tools · Operating systems & kernels · Linux & open-source ecosystems

Subtitles (excerpt)

earlier this year i tweeted about how i switched my primary dev environment to a graphical nyx vm on a mac os host and i really like it it's almost the end of the year and i still really love it and even prior to this tweet i had been experimenting and doing this for specific projects throughout 2020 and so it's been almost two years of this practice and uh i really love it and i finally got my nix os configs public for everyone to see and i wanted to show what it's like to set up one of these vms on a new machine and so i'm going to run through that today this could be outdated by the time you're watching it i'm recording this on october 25th 2021 but this is roughly what it feels like to me to set up a new machine and why i like this so much um so if i had a new machine i would the first thing i would do is open a terminal and clone this out and you could see that you could see that my mac terminal has no styling or anything i don't use the mac terminal anymore i only use it for this so i clone out my configurations uh i have some encrypted stuff in here so i unencrypt that and then at this point i start running through the make file and start creating my vm so this is an intel machine that i'm

On Hacker News

Just run Linux in a VM! It's my preferred workflow nowadays. See: [LINK] [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. — indiv0, 2022-04
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”: [VIDEO] — xyst, 2024-03
My general setup mirrors this[1] pretty closely, though of course on Windows I can just use WSL2. [1]: [VIDEO] — bsnnkv, 2022-11
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 be… — xisthesqrtof9, 2022-04
I got interested in NixOS after watching [LINK] and [VIDEO] I use fedora since long time and so far is quite stable without any non-sense — alekun, 2022-03

Related videos