lib/tests: remove strictly loaOf tests and rebase on attrsOf

This commit is contained in:
rnhmjoj
2020-01-06 10:39:19 -05:00
committed by worldofpeace
parent 1d61efb7f1
commit cde46494c6
23 changed files with 59 additions and 103 deletions
@@ -0,0 +1,29 @@
{ lib, ... }:
let
submod = { ... }: {
options = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = ''
Some descriptive text
'';
};
};
};
in
{
options = {
attrsOfSub = lib.mkOption {
default = {};
example = {};
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
description = ''
Some descriptive text
'';
};
};
}