/nix-darwin-vm

Shows how to easily create text only and graphic Linux VMs with nix on Darwin

Primary LanguageNix

What is this

A demonstration how easy it is to build text only or graphical Linux VMs with nix on Darwin.

Kudos to

How to use

If you do not have a remote builder setup for linux builds, run a linux builder

nix run nixpkgs#darwin.linux-builder

or enable it the nix-darwin linux builder or the nix-rosetta-builder if you want rosetta support

Then run your custom NixOS VM

# directly in terminal
nix run
# or
nix run .#text
# in a graphical window
nix run .#graphic

Profit!