···100 value.</para></listitem>
101 </varlistentry>
102 <varlistentry>
103- <term><varname>types.loeOf</varname> <replaceable>t</replaceable></term>
104- <listitem><para>A list or an element of <replaceable>t</replaceable> type.
105- Multiple definitions are merged according to the
106- values.</para></listitem>
107- </varlistentry>
108- <varlistentry>
109 <term><varname>types.nullOr</varname> <replaceable>t</replaceable></term>
110 <listitem><para><literal>null</literal> or type
111 <replaceable>t</replaceable>. Multiple definitions are merged according
···100 value.</para></listitem>
101 </varlistentry>
102 <varlistentry>
000000103 <term><varname>types.nullOr</varname> <replaceable>t</replaceable></term>
104 <listitem><para><literal>null</literal> or type
105 <replaceable>t</replaceable>. Multiple definitions are merged according
+1-1
nixos/modules/config/shells-environment.nix
···41 strings. The latter is concatenated, interspersed with colon
42 characters.
43 '';
44- type = types.attrsOf (types.loeOf types.str);
45 apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
46 };
47
···41 strings. The latter is concatenated, interspersed with colon
42 characters.
43 '';
44+ type = with types; attrsOf (either str (listOf str));
45 apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
46 };
47
+1-1
nixos/modules/config/system-environment.nix
···23 strings. The latter is concatenated, interspersed with colon
24 characters.
25 '';
26- type = types.attrsOf (types.loeOf types.str);
27 apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
28 };
29
···23 strings. The latter is concatenated, interspersed with colon
24 characters.
25 '';
26+ type = with types; attrsOf (either str (listOf str));
27 apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
28 };
29