nixpkgs/nixos/modules/services/audio
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
..
alsa.nix nixos/alsa: Do not make sound.enable conditional on stateVersion. 2018-02-23 23:14:42 +01:00
icecast.nix Added icecast module. 2015-03-17 14:21:57 +00:00
liquidsoap.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
mopidy.nix mopidy: fix, resolves #32234 2018-01-08 14:32:36 +00:00
mpd.nix nixos/mpd: allow configuring playlist directory (#28252) 2017-08-20 20:34:34 +00:00
slimserver.nix Remove static uid/gid 2017-03-18 13:54:39 +01:00
squeezelite.nix squeezelite service: init 2016-06-11 22:05:07 -04:00
ympd.nix audio services: use mkEnableOption (#18524) 2016-09-12 04:47:08 +02:00