If you prefer to use Linux, you may be interested in installing NixOS. The following instructions are for users of other Linux distros as well as macOS.
Install Nix using the unofficial installer: 1
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install --no-confirm --extra-conf "trusted-users = $(whoami)"
After installing Nix, open a new terminal and run the Nix Health checks,
nix --accept-flake-config run github:juspay/omnix 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.