Revert "Add option system.stateVersion"

This reverts commit ab415725ed.
This commit is contained in:
Eelco Dolstra 2015-08-13 16:28:44 +02:00
parent 1c13abaeea
commit d8f6a3a250
3 changed files with 0 additions and 20 deletions

View File

@ -538,9 +538,6 @@ $bootLoaderConfig
# uid = 1000;
# };
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "@nixosRelease@";
}
EOF
} else {

View File

@ -40,7 +40,6 @@ let
src = ./nixos-generate-config.pl;
path = [ pkgs.btrfsProgs ];
perl = "${pkgs.perl}/bin/perl -I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl";
inherit (config.system) nixosRelease;
};
nixos-option = makeProg {

View File

@ -6,22 +6,6 @@ with lib;
options = {
system.stateVersion = mkOption {
type = types.str;
default = "14.12";
description = ''
Every once in a while, a new NixOS release may change
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
value of this option to the NixOS release with which you want
to be compatible. The effect is that NixOS will option
defaults corresponding to the specified release (such as using
an older version of PostgreSQL).
'';
};
system.nixosVersion = mkOption {
internal = true;
type = types.str;