Installing Nix on macOS

Nix provides a reproducible and declarative package management system, ensuring that you and your co-developers are using the exact same dependencies and configurations. This eliminates the classic “it works on my machine” problem, streamlining collaboration and reducing setup time. The Determinate Systems’ installer simplifies the installation process, making it easy even for those new to Nix. By following these instructions, your team can quickly align their development environments, allowing you to focus on writing and running code seamlessly across all machines.


Step 1: Open Terminal


Step 2: Run the Installer Command

In the Terminal window, paste the following command and press Enter:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate

Step 3: Follow the Installation Prompts


Step 4: Restart Your Terminal Session

To apply the changes made by the installer, you need to restart your Terminal or source your shell profile:


Step 5: Verify the Installation

Ensure that Nix is installed correctly by checking its version:

nix --version

You should see output similar to:

nix (Nix) 2.x.x

Additional Notes