summary refs log tree commit diff
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-10-27 11:27:27 +0300
committerK900 <me@0upti.me>2023-10-29 15:02:50 +0300
commitfb1ccc91f74d28b24698b547bdbefd9231834bb6 (patch)
tree0383fb272450e3b18e5ae613b0d5e9182828f932
parent5323b93e9dfd2f3acc6cb46a6161795fd7a6b8bf (diff)
downloadnixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar.gz
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar.bz2
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar.lz
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar.xz
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.tar.zst
nixpkgs-fb1ccc91f74d28b24698b547bdbefd9231834bb6.zip
nixos-generate-config: rewrite stateVersion comment again
Hopefully this version is clearer. Also tried to make it less technical.
-rw-r--r--nixos/modules/installer/tools/tools.nix22
1 files changed, 16 insertions, 6 deletions
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix
index d385e4a6b1c..15e10128ac9 100644
--- a/nixos/modules/installer/tools/tools.nix
+++ b/nixos/modules/installer/tools/tools.nix
@@ -224,12 +224,22 @@ in
         # accidentally delete configuration.nix.
         # system.copySystemConfiguration = true;
 
-        # 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.
-        # Before changing this value read the documentation for this option
-        # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
+        # This option defines the first version of NixOS you have installed on this particular machine,
+        # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
+        #
+        # Most users should NEVER change this value after the initial install, for any reason,
+        # even if you've upgraded your system to a new NixOS release.
+        #
+        # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
+        # so changing it will NOT upgrade your system.
+        #
+        # This value being lower than the current NixOS release does NOT mean your system is
+        # out of date, out of support, or vulnerable.
+        #
+        # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
+        # and migrated your data accordingly.
+        #
+        # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
         system.stateVersion = "${config.system.nixos.release}"; # Did you read the comment?
 
       }