Upgrading Nix to major versions

Hello to you all. I just set up my system.. i use channels, so what is the correct procedure to upgrade to next major release of nix. I know that new version is months away but i want to be prepared..so if anyone is willing to share this i will be more than happy!! I red about it and found this steps, so please will someone tell me is this the right way to do the upgrade? it goes:

sudo nix-channel --add https://channels.nixos.org/nixos-version nixos
sudo nix-channel --update
sudo nixos-rebuild switch
reboot

1 Like

This should be boot rather than switch, since massive changes will likely need a reboot to be coherent.

4 Likes

Thank you a lot..i also contributed to the project..This is a phenomenal distro!! I wish you a good day kind sir.