nixpkgs/nixos
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
..
doc/manual nixos/alsa: Do not make sound.enable conditional on stateVersion. 2018-02-23 23:14:42 +01:00
lib Document the makeTest length restriction 2018-02-20 16:36:16 +02:00
maintainers nixos/make-disk-image.nix: Support EFI images 2018-01-22 11:18:23 +02:00
modules nixos/alsa: Do not make sound.enable conditional on stateVersion. 2018-02-23 23:14:42 +01:00
tests Revert "cups service: fix client sockets" 2018-02-23 18:47:43 +03:00
COPYING
default.nix nixos: export packages of the current configuration (its pkgs argument) 2018-02-09 19:35:27 +00:00
README
release-combined.nix nixos/release*.nix: Clean nixpkgs sources by default 2018-02-09 18:32:26 +00:00
release-small.nix nixos/tests: add predictable-interface-names.nix (#34305) 2018-02-09 18:40:39 +00:00
release.nix Merge pull request #35065 from jtojnar/fwupd-1.0.5 2018-02-23 17:22:47 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.