nixos/testing/meta.nix: Add options, some optional

This commit is contained in:
Robert Hensing 2022-06-26 00:13:03 +02:00
parent f01fec4099
commit 0af6e6b0e5

View file

@ -4,9 +4,25 @@ let
in
{
options = {
meta.maintainers = lib.mkOption {
type = types.listOf types.raw;
default = [];
meta = lib.mkOption {
apply = lib.filterAttrs (k: v: v != null);
type = types.submodule {
options = {
maintainers = lib.mkOption {
type = types.listOf types.raw;
default = [];
};
timeout = lib.mkOption {
type = types.nullOr types.int;
default = null;
};
broken = lib.mkOption {
type = types.bool;
default = false;
};
};
};
default = {};
};
};
}