core/lib/tests/modules/declare-submoduleWith-noshorthand.nix

14 lines
236 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{ lib, ... }:
let
2024-05-01 22:14:04 +00:00
sub.options.config = lib.mkOption {
type = lib.types.bool;
default = false;
};
2024-06-30 08:16:52 +00:00
in
{
2024-05-01 22:14:04 +00:00
options.submodule = lib.mkOption {
2024-06-30 08:16:52 +00:00
type = lib.types.submoduleWith { modules = [ sub ]; };
default = { };
2024-05-01 22:14:04 +00:00
};
}