NixOS virtual machines on macOS: Difference between revisions

From NixOS Wiki
Add nix-darwin page
 
Line 6: Line 6:
Then run:
Then run:


<nowiki>
<syntaxHighlight lang=console>
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer &&
$ nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer && ./result/bin/darwin-installer
./result/bin/darwin-installer
</syntaxHighlight>
</nowiki>

Revision as of 16:02, 20 August 2024

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