NixOS virtual machines on macOS: Difference between revisions

From NixOS Wiki
Unabomberlive (talk | contribs)
m Syntax highlight fix
Line 6: Line 6:
Then run:
Then run:


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

Revision as of 16:57, 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