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
/
declare-bare-submodule-nested-option.nix
blob
da125c84b25d4629a0400cd2b77f6241e4495293
1
{ config, lib, ... }:
2
let
3
inherit (lib) mkOption types;
4
in
5
{
6
options.bare-submodule = mkOption {
7
type = types.submoduleWith {
8
shorthandOnlyDefinesConfig = config.shorthandOnlyDefinesConfig;
9
modules = [
10
{
11
options.nested = mkOption {
12
type = types.int;
13
default = 1;
14
};
15
}
16
];
17
};
18
};
19
}