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
vuls: init at 0.27.0
[NixPkgs.git]
/
lib
/
tests
/
modules
/
extendModules-168767-imports.nix
blob
6b50b81236d17a48dbb5679aa3eb2f5a63386b74
1
{ lib
2
, extendModules
3
, ...
4
}:
5
6
let
7
inherit (lib)
8
mkOption
9
mkOverride
10
types
11
;
12
in
13
{
14
imports = [
15
16
{
17
options.sub = mkOption {
18
default = { };
19
type = types.submodule (
20
{ config
21
, extendModules
22
, ...
23
}:
24
{
25
options.value = mkOption {
26
type = types.int;
27
};
28
29
options.specialisation = mkOption {
30
default = { };
31
inherit
32
(extendModules {
33
modules = [{
34
specialisation = mkOverride 0 { };
35
}];
36
})
37
type;
38
};
39
}
40
);
41
};
42
}
43
44
{ config.sub.value = 1; }
45
46
47
];
48
}