Home Explore Blog Models CI



nix

doc/manual/source/installation/index.md
45d9190767d5439d2fdffc993be8ed43810b476c503fc2170000000300000592
# Installation

This section describes how to install and configure Nix for first-time use.

The current recommended option on Linux and MacOS is [multi-user](#multi-user).

## Multi-user

This installation offers better sharing, improved isolation, and more security
over a single user installation.

This option requires either:

* Linux running systemd, with SELinux disabled
* MacOS

> **Updating to macOS 15 Sequoia**
>
> If you recently updated to macOS 15 Sequoia and are getting
> ```console
> error: the user '_nixbld1' in the group 'nixbld' does not exist
> ```
> when running Nix commands, refer to GitHub issue [NixOS/nix#10892](https://github.com/NixOS/nix/issues/10892) for instructions to fix your installation without reinstalling.

```console
$ curl -L https://nixos.org/nix/install | sh -s -- --daemon
```

## Single-user

> Single-user is not supported on Mac.

> `warning: installing Nix as root is not supported by this script!`

This installation has less requirements than the multi-user install, however it
cannot offer equivalent sharing, isolation, or security.

This option is suitable for systems without systemd.

```console
$ curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
```

## Distributions

The Nix community maintains installers for several distributions.

They can be found in the [`nix-community/nix-installers`](https://github.com/nix-community/nix-installers) repository.

Chunks
726439b1 (1st chunk of `doc/manual/source/installation/index.md`)
Title: Nix Installation and Configuration
Summary
This section details the installation and configuration of Nix, recommending the multi-user option for Linux (with systemd and SELinux disabled) and MacOS due to its superior sharing, isolation, and security features. It also provides a fix for a known error when updating to macOS 15 Sequoia. The single-user installation is presented as an alternative for systems without systemd, noting it has fewer requirements but offers less security and is not supported on Mac. Additionally, it references community-maintained distribution-specific installers available in the `nix-community/nix-installers` repository.