diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-01-08 03:25:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 03:25:51 +0100 |
commit | 32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b (patch) | |
tree | 49ddd7bb7701f22f853f72ff69fb7f7c94a1e07e /nixos | |
parent | 4d77c4a7708dae8f7661d2c159a0b7ed150a8575 (diff) | |
parent | fa3919de5fd2f7591354fe6a3e845f77081a30b4 (diff) | |
download | nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar.gz nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar.bz2 nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar.lz nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar.xz nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.tar.zst nixlib-32104e7c77c9fbb2c13f1e62980f9f0bfe6f990b.zip |
nixos/doc: document the loaOf type deprecation (#77109)
nixos/doc: document the loaOf type deprecation
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2003.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index 13f4c62c018a..ca319dfea411 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -357,6 +357,40 @@ services.xserver.displayManager.defaultSession = "xfce+icewm"; <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.useACMEHost</link>. </para> </listitem> + <listitem> + <para> + For NixOS configuration options, the <literal>loaOf</literal> type has + been deprecated and will be removed in a future release. In nixpkgs, + options of this type will be changed to <literal>attrsOf</literal> + instead. If you were using one of these in your configuration, you will + see a warning suggesting what changes will be required. + </para> + <para> + For example, <link linkend="opt-users.users">users.users</link> is a + <literal>loaOf</literal> option that is commonly used as follows: + <programlisting> +users.users = + [ { name = "me"; + description = "My personal user."; + isNormalUser = true; + } + ]; + </programlisting> + This should be rewritten by removing the list and using the + value of <literal>name</literal> as the name of the attribute set: + <programlisting> +users.users.me = + { description = "My personal user."; + isNormalUser = true; + }; + </programlisting> + </para> + <para> + For more information on this change have look at these links: + <link xlink:href="https://github.com/NixOS/nixpkgs/issues/1800">issue #1800</link>, + <link xlink:href="https://github.com/NixOS/nixpkgs/pull/63103">PR #63103</link>. + </para> + </listitem> </itemizedlist> </section> |