diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-01-10 14:42:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 14:42:27 +0100 |
commit | 902d102c853708bb595d264cca75acb910f9f9ed (patch) | |
tree | 487f6808599a9fd262a8f0d1e471d91bb091ee66 /nixos/modules/misc | |
parent | 7fb6e4af36a1c1cf7fba1d3784ba06e0faa808c2 (diff) | |
parent | c1d7850f85eaedbe8ebe13205f90865ca1361d31 (diff) |
Merge pull request #77279 from maralorn/stateVersion-docs
Improve documentation for stateVersion
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/version.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 0540b493003fe..b85614771ee40 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -61,11 +61,18 @@ in configuration defaults in a way incompatible with stateful data. For instance, if the default version of PostgreSQL changes, the new version will probably be unable to read your - existing databases. To prevent such breakage, you can set the + existing databases. To prevent such breakage, you should set the value of this option to the NixOS release with which you want - to be compatible. The effect is that NixOS will option + to be compatible. The effect is that NixOS will use defaults corresponding to the specified release (such as using an older version of PostgreSQL). + It‘s perfectly fine and recommended to leave this value at the + release version of the first install of this system. + Changing this option will not upgrade your system. In fact it + is meant to stay constant exactly when you upgrade your system. + You should only bump this option, if you are sure that you can + or have migrated all state on your system which is affected + by this option. ''; }; |