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

Changed files
+19 -3
nixos
lib
testing
+19 -3
nixos/lib/testing/meta.nix
···
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 = {};
};
};
}