nixpkgs/nixos/modules/misc
Eelco Dolstra d166c854b6 Add option system.stateVersion
This option requests compatibility with older NixOS releases with
respect to stateful data, in cases where new releases have defaults
that might be incompatible with system state of existing NixOS
deployments. For instance, if we change the default version of
PostgreSQL, existing deployments will break if the new version can't
read databases created by the old version.

So for example, setting

  system.stateVersion = "15.07";

requests that options like services.postgresql.package use defaults
corresponding to the 15.07 release branch. Note that
nixos-generate-config emits this option. (In the future, NixOps may
set system.stateVersion to the NixOS release in use when the machine
was created.)

See also #7939 for another motivating example.
2015-07-27 20:30:09 +02:00
..
assertions.nix Some more type cleanup 2015-06-15 18:18:46 +02:00
crashdump.nix nixos/manual: Use literalExample when feasible. 2014-08-27 23:41:15 +02:00
extra-arguments.nix Bring an importable modulesPath back from the dead, in the only way I know 2015-06-08 01:55:49 +00:00
ids.nix riak: new nixos service 2015-07-21 09:25:41 -04:00
lib.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
locate.nix Quote paths from example & default attributes. 2014-08-28 08:36:55 +02:00
meta.nix NixOS: Add meta.maintainer option to modules. 2014-08-25 01:04:39 +02:00
nixpkgs.nix types.uniq types.str -> types.str 2015-06-15 18:12:32 +02:00
passthru.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
version.nix Add option system.stateVersion 2015-07-27 20:30:09 +02:00