Answer (summary)
If you’re not running NixOS, then
- Give your nix-env access to the latest by running
sudo nix-channel --update
- Update all of your packages (which will probably take awhile)
nix-env -u '*'
If you are running NixOS
nix-channel --add https://channels.nixos.org/nixos-20.09 nixos
nix-env -u '*'
- (if you have home-manager)
home-manager switch
- (if you want to upgrade your system)
sudo nix-channel --add https://channels.nixos.org/nixos-20.09 nixos
sudo nixos-rebuild switch