I'm currently on 18.03 and would like to upgrade to 18.09. How would I go about doing this?
I've found the following via a web search but it's not very conclusive: https://discourse.nixos.org/t/how-to-upgrade-from-18-03-to-18-09/933
I'm assuming I could possibly just change my channel referenced by nixos
? But I'm not sure if this is ideal for allowing to rollback in the case of things going wrong.
sudo nix-channel --list
nixos https://nixos.org/channels/nixos-18.03
unstable https://nixos.org/channels/nixos-unstable
In addition I've also seen the following: https://github.com/NixOS/nixpkgs/issues/40351#issuecomment-388405973 (quoted below) - do I need to take this into consideration?
Also:
/etc/nixos/configuration.nix:
# This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "17.09"; # Did you read the comment? I didn't saw when command was issued to change this.
I read the release notes, news and available information. Waited for the command to do it, but not found one.
Anyway, couple days after release I changed "17.09" -> "18.03".
sudo
) any change will affect only the user then you can perform an upgrade for the root. Could you confirm?system.stateVersion
: on more recent installs, the comment on it is clearer: "This value determines the NixOS release from which the default settings for stateful data, like file locations and database versions on your system were taken. It's perfectly fine and recommended to leave this value at the release version of the first install of this system." So generally you should not change it.