Update Nix to Unstable

Answer (summary)

If you’re not running NixOS, then

  1. Give your nix-env access to the latest by running
    sudo nix-channel --update
  2. Update all of your packages (which will probably take awhile)
    nix-env -u '*'

If you are running NixOS

  1. nix-channel --add https://channels.nixos.org/nixos-20.09 nixos
  2. nix-env -u '*'
  3. (if you have home-manager) home-manager switch
  4. (if you want to upgrade your system)
sudo nix-channel --add https://channels.nixos.org/nixos-20.09 nixos
sudo nixos-rebuild switch
2 Likes