repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
opencomposite: add meta.platforms (#357198)
[NixPkgs.git]
/
lib
/
tests
/
modules
/
declare-submodule-via-evalModules.nix
blob
2841c64a073d56e769f86f97620e73d07eb21ee9
1
{ lib, ... }: {
2
options.submodule = lib.mkOption {
3
inherit (lib.evalModules {
4
modules = [
5
{
6
options.inner = lib.mkOption {
7
type = lib.types.bool;
8
default = false;
9
};
10
}
11
];
12
}) type;
13
default = {};
14
};
15
16
config.submodule = lib.mkMerge [
17
({ lib, ... }: {
18
options.outer = lib.mkOption {
19
type = lib.types.bool;
20
default = false;
21
};
22
})
23
{
24
inner = true;
25
outer = true;
26
}
27
];
28
}