lib/tests: Add submoduleWith tests

This commit is contained in:
Silvan Mosberger
2020-01-02 09:59:35 +01:00
parent eec83d41e3
commit cc81320a46
8 changed files with 110 additions and 0 deletions
@@ -0,0 +1,14 @@
{ lib, ... }: let
sub.options.config = lib.mkOption {
type = lib.types.bool;
default = false;
};
in {
options.submodule = lib.mkOption {
type = lib.types.submoduleWith {
modules = [ sub ];
shorthandOnlyDefinesConfig = true;
};
default = {};
};
}