NixOS virtual machines on macOS: Difference between revisions

Thu (talk | contribs)
No edit summary
Thu (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
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 it is built around Nixpkgs (much like NixOS). After installing Nix, <code>nix-darwin</code> will help us with the following goals:
 
With Nix on macOS, we can do these things:


# Build a complete NixOS (Linux) system.
# Build a complete NixOS (Linux) system.
Line 24: Line 22:
that the Linux builder is actually such a virtual machine.
that the Linux builder is actually such a virtual machine.


Point 4 is similar to point 3, but since the tests are _built_ using virtual
Point 4 is similar to point 3, but since the tests are '''built''' using virtual
machines, it means that these virtual machines are running inside the Linux
machines, it means that these virtual machines are running inside the Linux
builder. This is not a problem if our environment supports nested
builder. This is not a problem if our environment supports nested