core/lib/tests/modules/submoduleFiles.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
444 B
Nix
Raw Normal View History

2024-05-01 22:14:04 +00:00
{ lib, ... }:
{
options.submodule = lib.mkOption {
default = { };
type = lib.types.submoduleWith {
modules = [
(
{ options, ... }:
{
options.value = lib.mkOption { };
options.internalFiles = lib.mkOption { default = options.value.files; };
}
2024-06-30 08:12:46 +00:00
)
2024-05-01 22:14:04 +00:00
];
};
};
imports = [
{
_file = "the-file.nix";
submodule.value = 10;
}
];
}