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:16:52 +00:00
|
|
|
)
|
2024-05-01 22:14:04 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
{
|
|
|
|
_file = "the-file.nix";
|
|
|
|
submodule.value = 10;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|