1. Get Nix running on your system

Quick start / Get Nix running on your system
Guide 1 of 8
In this guide

Get Nix running on your Linux or macOS system using nix-installer

Verify that your installed Nix is working as expected

The target audience for the quick start

We wrote this Zero to Nix quick start with one specific audience in mind: people who have heard about Nix but don't yet know much about it and aren't quite sure where to start with the learning process. It's intended less as a how-to guide for using Nix in your everyday workflows and more to provide a glimpse into Nix's feature set and to provide some of those "a-ha!" moments that make you feel empowered to go further.

If you're already fairly familiar with Nix and are looking for specific guidance on using it in your day job, you may still get some value out of the quick start but you may be better served with more practical, guide-driven resources like nix.dev.

Welcome! It's great to see that you're interested in Nix. In this quick start, we'll get Nix installed on your system and provide you with a small taste of Nix's feature set by accomplishing some practical things, such as creating a development environment and building a package using Nix.

We recommend installing Nix using the Determinate Nix installer, a tool from Determinate Systems that tailors the installation process to your system. The installer supports these platforms:

Platform Multi user? root only
Linux on 64-bit ARM and 64-bit AMD/Intel ✅ (via systemd)
macOS on 64-bit ARM and 64-bit AMD/Intel
Valve Steam Deck (SteamOS)
Windows Subsystem for Linux (WSL) on 64-bit ARM and 64-bit AMD/Intel ✅ (via systemd)
Podman Linux containers ✅ (via systemd)
Docker containers

To run the installer:

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

If you have concerns about the "curl to Bash" approach you have two options:

  1. You can download a binary for the most recent version of the Determinate Nix Installer directly from the releases page and run it.

  2. You can examine the installation script here then download and run it:

    curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix > nix-installer.sh
    chmod +x nix-installer.sh
    ./nix-installer.sh install

Validate the displayed plan and approve it to begin the installation process. Once the installer has finished, you should see Nix was installed successfully! in your terminal.

Open a new terminal session and the nix executable should be in your $PATH. To verify that:

nix --version

This should print the version information for Nix.

🚀 Success! You now have Nix installed and ready to go on your system.


Was this page helpful?