From this repo:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
mkdir $XDG_CONFIG_HOME/nix
cp nix.conf $XDG_CONFIG_HOME/nix/
cp -r nixconfig $XDG_CONFIG_HOME/
Then run:
cd $XDG_CONFIG_HOME/nixconfig
nix run .#activate[-home] # use the optional variant for non nixos linux
To update:
nix run .#update && nix run .#activate[-home] # or nix flake update && nix run .#activate[-home]
-
On a mac, you may need to download iterm2 as the installed version does not appear in the Finder.
-
Some items may fail to appear available in the shell, simply restart the shell or even the device.
-
Nix can't find your machine. Be sure the
username
andconfiguration
are correct and rerun.