NixOS virtual machines on macOS: Difference between revisions

Thu (talk | contribs)
Thu (talk | contribs)
No edit summary
Line 1: Line 1:
The [https://github.com/LnL7/nix-darwin 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.
NixOS is based on Linux, but a lot of developers are using MacBooks. The [https://github.com/LnL7/nix-darwin nix-darwin] project aims to bring the convenience of a declarative system approach to macOS and <code>nix-darwin</code> is built around Nixpkgs, much like NixOS.
 
== Getting started ==
To install Nix-darwin, first install Nix on the fresh macOS machine.
 
Then run:
 
<syntaxhighlight lang="console">
$ nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
$ ./result/bin/darwin-installer
</syntaxhighlight>
 
The following sections provide more details.
 
== NixOS virtual machines on macOS ==
 
NixOS is based on Linux, but a lot of developers are using MacBooks.


With Nix on macOS, we can do these things:
With Nix on macOS, we can do these things: