1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/nixos/modules
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
..
config nixos/powerManagement: remove duplicate definition 2018-01-28 21:53:07 +01:00
hardware rtl8723bs: Only include in enableAllFirmware if valid 2018-02-22 08:52:50 -05:00
i18n/input-method
installer nixos: disable sound by default, if stateVersion >= 18.03 (#35355) 2018-02-22 22:06:31 +00:00
misc nixpkgs module: update config example 2018-02-23 00:21:15 +01:00
profiles Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
programs nixos/programs.chromium: write policies for google-chrome too 2018-02-23 19:00:26 +00:00
security nixos/pam: support for Google Authenticator 2018-02-09 21:09:03 -08:00
services nixos/alsa: Do not make sound.enable conditional on stateVersion. 2018-02-23 23:14:42 +01:00
system plymouth: Fix reference to NixOS version 2018-02-19 11:05:32 -05:00
tasks Merge pull request #35141 from abbradar/dhcpcd-order 2018-02-20 16:07:49 +00:00
testing nixos/qemu: Deduplicate QEMU serialDevice into qemu-flags.nix 2018-01-30 16:57:27 +02:00
virtualisation Virtualbox: Fix type error in networking.interfaces.vboxnet0.ipv4.addresses 2018-02-19 17:48:15 +01:00
module-list.nix brscan4 module: Added to modules-list.nix. 2018-02-20 19:35:33 -05:00
rename.nix nixos: rename config.system.nixos* -> config.system.nixos.* 2018-02-18 12:56:30 +00:00