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,12 @@
{ lib, ... }: {
options.submodule = lib.mkOption {
type = lib.types.submoduleWith {
modules = [
./declare-enable.nix
];
};
default = {};
};
config.submodule = ./define-enable.nix;
}