Installation
-
Install Nix for the multiuser if you are on Linux running Systemd (confirm by running
systemctl status). -
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 --yesThe above command will do a couple of things:
- Set up
nix-daemon.serviceandnix-daemon.socketas Systemd services - Install Nix at
/nix - Take backups of shell files
- Create local users and a local group
nixbldto run Nix builds
- Set up
-
Restart the shell again to load the changes.
-
Verify the Nix installation by running:
nix --version.
Uninstallation
Read this guide on how to remove a multiuser installation from the Linux.
