Linux
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 experimental installer:1
curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \
sh -s -- install --no-confirm --extra-conf "trusted-users = $(whoami)"
Enable flakes:
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.custom.conf
Run health check:
nix run nixpkgs#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.