summary refs log tree commit diff
path: root/nixos/modules/installer/tools
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-08-31 06:47:09 -0400
committerGitHub <noreply@github.com>2017-08-31 06:47:09 -0400
commit8a11b0d7df8cba508497e372dd4871c895258150 (patch)
tree2fbf2f6b5a1c5ab98784ce1a1f31ba0bea20764d /nixos/modules/installer/tools
parent8f389f331641561c2c0355edd9e83593bf908a39 (diff)
parent8efb46b6094170e55c0d1776e77d19d184c7b546 (diff)
downloadnixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar.gz
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar.bz2
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar.lz
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar.xz
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.tar.zst
nixlib-8a11b0d7df8cba508497e372dd4871c895258150.zip
Merge pull request #28775 from grahamc/describe-stateVersion
Document the stateVersion more
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index f15f08613883..3af76f898f9a 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -618,8 +618,11 @@ $bootLoaderConfig
   #   uid = 1000;
   # };
 
-  # The NixOS release to be compatible with for stateful data such as databases.
-  system.stateVersion = "${\(qw(@nixosRelease@))}";
+  # 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 = "${\(qw(@nixosRelease@))}"; # Did you read the comment?
 
 }
 EOF