NixOS virtual machines on macOS
The nix-darwin project aims to bring the convenience of a declarative system approach to macOS. nix-darwin is built up around Nixpkgs, quite similar to NixOS.
Getting started
To install Nix-darwin, first install Nix on the fresh macOS machine.
Then run:
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer && ./result/bin/darwin-installer