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
/
submoduleFiles.nix
blob
c0d9b2cef3e8d3483495cea9765d05ec20c9d8aa
1
{ lib, ... }: {
2
options.submodule = lib.mkOption {
3
default = {};
4
type = lib.types.submoduleWith {
5
modules = [ ({ options, ... }: {
6
options.value = lib.mkOption {};
7
8
options.internalFiles = lib.mkOption {
9
default = options.value.files;
10
};
11
})];
12
};
13
};
14
15
imports = [
16
{
17
_file = "the-file.nix";
18
submodule.value = 10;
19
}
20
];
21
}