NixOS virtual machines on macOS

From NixOS Wiki
Revision as of 16:57, 20 August 2024 by Unabomberlive (talk | contribs) (Syntax highlight fix)

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