core/lib/tests/modules/declare-oneOf.nix
2024-06-30 09:12:46 +01:00

11 lines
171 B
Nix

{ lib, ... }:
{
options.value = lib.mkOption {
type = lib.types.oneOf [
lib.types.int
(lib.types.listOf lib.types.int)
lib.types.str
];
};
}