Installation

  1. Install Nix for the multiuser if you are on Linux running Systemd (confirm by running systemctl status).

  2. Use the following command for the installation:

    sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
     
    # if you wish to install silently / no-confirmation mode
    # sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon --yes

    The above command will do a couple of things:

    • Set up nix-daemon.service and nix-daemon.socket as Systemd services
    • Install Nix at /nix
    • Take backups of shell files
    • Create local users and a local group nixbld to run Nix builds
  3. Restart the shell again to load the changes.

  4. Verify the Nix installation by running: nix --version.

Uninstallation

Read this guide on how to remove a multiuser installation from the Linux.