Skip to content

Install Nix

Jashandeep Sohi edited this page Apr 12, 2024 · 1 revision

macos

Install using Determinate Systems' installer:

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

This should setup Nix in a multi-user setup.

In this mode, because it runs as a daemon, you should add yourself as a trusted user so that you can use binary caching properly:

echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf

And then restart the daemon:

sudo launchctl kickstart -k system/org.nixos.nix-daemon

Linux

Install using Determinate Systems' installer:

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

This should setup Nix in a multi-user setup.

In this mode, because it runs as a daemon, you should add yourself as a trusted user so that you can use binary caching properly:

echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf

And then restart the daemon:

systemctl restart nix-daemon
Clone this wiki locally