mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
21 lines
403 B
Nix
21 lines
403 B
Nix
{ lib, ... }: {
|
|
options.submodule = lib.mkOption {
|
|
default = {};
|
|
type = lib.types.submoduleWith {
|
|
modules = [ ({ options, ... }: {
|
|
options.value = lib.mkOption {};
|
|
|
|
options.internalFiles = lib.mkOption {
|
|
default = options.value.files;
|
|
};
|
|
})];
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
{
|
|
_file = "the-file.nix";
|
|
submodule.value = 10;
|
|
}
|
|
];
|
|
}
|