types: loeOf -> listOf

Changed files
+4 -10
nixos
doc
manual
development
modules
-6
nixos/doc/manual/development/option-types.xml
···
value.</para></listitem>
</varlistentry>
<varlistentry>
-
<term><varname>types.loeOf</varname> <replaceable>t</replaceable></term>
-
<listitem><para>A list or an element of <replaceable>t</replaceable> type.
-
Multiple definitions are merged according to the
-
values.</para></listitem>
-
</varlistentry>
-
<varlistentry>
<term><varname>types.nullOr</varname> <replaceable>t</replaceable></term>
<listitem><para><literal>null</literal> or type
<replaceable>t</replaceable>. Multiple definitions are merged according
+1 -1
nixos/modules/config/shells-environment.nix
···
strings. The latter is concatenated, interspersed with colon
characters.
'';
-
type = types.attrsOf (types.loeOf types.str);
+
type = with types; attrsOf (either str (listOf str));
apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
};
+1 -1
nixos/modules/config/system-environment.nix
···
strings. The latter is concatenated, interspersed with colon
characters.
'';
-
type = types.attrsOf (types.loeOf types.str);
+
type = with types; attrsOf (either str (listOf str));
apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
};
+2 -2
nixos/modules/services/misc/taskserver/default.nix
···
};
allowedClientIDs = mkOption {
-
type = with types; loeOf (either (enum ["all" "none"]) str);
+
type = with types; either str (listOf str);
default = [];
example = [ "[Tt]ask [2-9]+" ];
description = ''
···
};
disallowedClientIDs = mkOption {
-
type = with types; loeOf (either (enum ["all" "none"]) str);
+
type = with types; either str (listOf str);
default = [];
example = [ "[Tt]ask [2-9]+" ];
description = ''