In a previous article, I explained how to set
up Nix on MacOS. This article shows the way I set up a development environment
for an Elixir project with Nix.
The instructions in this article assume that you have a working Nix
installation on your machine.
In the last couple of days, I played bit with Nix on MacOS. This is a summary of my current setup.
This article does not go into details about what Nix is or why you would want to use it. For more information on that, read What Is Nix and Why You Should Use It.
Installation To install Nix on MacOS as a multi-user installation, run:
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon Since / is read-only since MacOS Catalina, the installation script will create an APFS volume for the Nix store and mount it at /nix.