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