summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-generate-config.pl
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-08-30 21:12:19 -0400
committerGraham Christensen <graham@grahamc.com>2017-08-30 21:41:35 -0400
commit8efb46b6094170e55c0d1776e77d19d184c7b546 (patch)
tree17783596b8399f3a1d50a7206bd0c5542363df0e /nixos/modules/installer/tools/nixos-generate-config.pl
parentfb182034500aa71de27a86439f349f3654bae515 (diff)
downloadnixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar.gz
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar.bz2
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar.lz
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar.xz
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.tar.zst
nixpkgs-8efb46b6094170e55c0d1776e77d19d184c7b546.zip
configuration.nix: Document the stateVersion more
Diffstat (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl')
-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 f15f0861388..3af76f898f9 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