Install Nix using the unofficial installer: 1
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
After installing Nix, open a new terminal and run the Nix Health checks,
nix --accept-flake-config run github:juspay/nix-health
Expect to see all results in either green (or yellow).
Next Steps
Checkout First steps with Nix and
- Nix for Development if you are looking to use Nix for development.
- home-manager (and nix-darwin if you are on macOS) if you would like to use Nix for more than packages and devShells.
You can use the official installer. However, there are a couple of manual steps necessary:
- As it does not yet include an uninstaller, you will have to manually uninstall Nix when the time comes (example).
- As it does not automatically enable Flakes, you will have to manually enable it.