3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
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
..
config Merge branch 'master.upstream' into staging.upstream 2015-07-05 13:06:02 -07:00
hardware types.uniq types.str -> types.str 2015-06-15 18:12:32 +02:00
installer Add option system.stateVersion 2015-07-27 20:30:09 +02:00
misc Add option system.stateVersion 2015-07-27 20:30:09 +02:00
profiles Replaces https://github.com/NixOS/nixpkgs/pull/8368 2015-06-17 19:26:17 +02:00
programs Merge branch 'master.upstream' into staging.upstream 2015-06-17 11:57:40 -07:00
security Merge branch 'master.upstream' into staging.upstream 2015-07-05 13:06:02 -07:00
services Require signed binary caches by default 2015-07-27 20:30:09 +02:00
system Fix grub-reboot 2015-07-27 01:07:38 +02:00
tasks Don't include wireless tools in containers 2015-07-22 12:51:21 +02:00
testing test-instrumentation.nix: Prevent calling a pager 2015-01-15 14:39:29 +01:00
virtualisation Use ConditionVirtualization to disable some services in containers 2015-07-22 12:23:40 +02:00
module-list.nix Merge pull request #8799 from ryantm/master 2015-07-24 10:11:26 +02:00
rename.nix Merge pull request #6702 from joachifm/dnscrypt-proxy 2015-07-12 00:17:46 -07:00