nixpkgs/nixos/modules/installer/tools
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
..
nixos-build-vms nixos-build-vms: Fix function invocation to test driver 2014-06-09 13:36:26 +02:00
get-version-suffix Mark builds from git explicitly 2014-05-01 15:05:14 +02:00
nixos-checkout.nix nixos-checkout: Add nixpkgs-channels as a remote 2015-05-20 14:16:36 +02:00
nixos-generate-config.pl Add option system.stateVersion 2015-07-27 20:30:09 +02:00
nixos-install.sh nixos-install: correctly detect stdin 2015-04-29 18:48:21 +02:00
nixos-option.sh Merge pull request #5416 from nbp/nixos-option-include 2014-12-21 15:11:11 -08:00
nixos-rebuild.sh nixos-rebuild: Conditionally update channels. 2015-04-13 12:54:19 +02:00
nixos-version.sh Add option to display git revision to nixos-version 2014-12-27 21:43:04 +01:00
tools.nix Add option system.stateVersion 2015-07-27 20:30:09 +02:00