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-attrsOfSub-any-enable.nix
blob
986d07227e13b706416ebfcdda6a4258fe66b785
1
{ lib, ... }:
2
3
let
4
submod = { ... }: {
5
options = {
6
enable = lib.mkOption {
7
default = false;
8
example = true;
9
type = lib.types.bool;
10
description = ''
11
Some descriptive text
12
'';
13
};
14
};
15
};
16
in
17
18
{
19
options = {
20
attrsOfSub = lib.mkOption {
21
default = {};
22
example = {};
23
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
24
description = ''
25
Some descriptive text
26
'';
27
};
28
};
29
}