Nix Package Manager
Nix is a tool that enables reproducible package build in isolation allowing package's to be install on any Linux based operating system including Mac OS.
To install NixOS for multiple users run the following command:
sh <(curl -L https://nixos.org/nix/install) --daemon
NixOS recommends installing the Nix package manager as a multi-user installation as it provides better build isolation, better security, and the ability to share downloads between users. To see the full explanation click here
Once Nix is installed you will need to refresh your terminal, you can do that by running the command
To configure Nix you can edit the
I recommend enabling
flakes before you start working with Nix.
nix-command allows you to run commands less verbosely and
flakes lets you search for packages in the terminal. To enable these experimental features paste the following line in the
experimental-features = nix-command flakes
The syntax for searching packages is as follows:
nix search nixpkgs <package name>
If you are not a fan of using the terminal search feature Nix also has a website where you can see all 80,000 packages. If you use the web search Nix will provide you with the installation instructions in the results.