nixpkgs/nixos/doc/manual/release-notes
Aristid Breitkreuz e349ccc77f nixos/alsa: Do not make sound.enable conditional on stateVersion.
Eelco Dolstra wrote:

Hm, this is not really the intended use of stateVersion. From the 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).

So this is only intended for options that have some corresponding on-disk state. AFAICT this is not the case for sound. In any case stateVersion is a necessary evil that only exists because we can't just upgrade Postgres databases or change SSH host keys. It's not necessary for things like whether sound is enabled. (If the user discovers that sound is suddenly disabled, they can just enable it.)

I had some vague recollection that we also had a configVersion option setting to control the defaults for non-state-related options, but I can't find it so maybe it was only discussed.
2018-02-23 23:14:42 +01:00
..
release-notes.xml manuals: document removal of newStdcpp from steam 2017-09-27 20:12:06 +02:00
rl-1310.xml Move release notes to an appendix and a separate chunk 2015-07-22 16:21:32 +02:00
rl-1404.xml nixos manual: Adds some examples of how to use fdisk. 2017-11-01 13:48:09 +10:00
rl-1412.xml Move release notes to an appendix and a separate chunk 2015-07-22 16:21:32 +02:00
rl-1509.xml manual: update mailing list links 2017-07-18 07:54:36 -04:00
rl-1603.xml doc: Fix some typos 2017-06-11 22:13:42 +02:00
rl-1609.xml nixos: purge remaining grsecurity bits 2017-09-02 20:35:24 +02:00
rl-1703.xml Release notes: Fix syntax in code sample 2017-07-05 16:39:19 +03:00
rl-1709.xml 17.09 release notes: fix typo 2017-10-01 12:44:06 +02:00
rl-1803.xml nixos/alsa: Do not make sound.enable conditional on stateVersion. 2018-02-23 23:14:42 +01:00