lib/types: types.nullOr deprecate functor.wrapped in favor of functor.payload.elemType

This commit is contained in:
Johannes Kirschbauer
2025-01-19 16:21:33 +01:00
parent 05958f27e2
commit 4fe25460e1
4 changed files with 23 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ let
attrsOf
listOf
unique
nullOr
;
in
{
@@ -34,6 +35,13 @@ in
options.mergedUnique = mkOption {
type = unique { message = ""; } (listOf types.str);
};
# nullOr
options.nullOr = mkOption {
type = nullOr (listOf types.str);
};
options.mergedNullOr = mkOption {
type = nullOr (listOf types.str);
};
}
)
# Module B
@@ -49,6 +57,9 @@ in
options.mergedUnique = mkOption {
type = unique { message = ""; } (listOf types.str);
};
options.mergedNullOr = mkOption {
type = nullOr (listOf types.str);
};
}
)
];