diff options
Diffstat (limited to 'lib/tests/modules/declare-bare-submodule-nested-option.nix')
-rw-r--r-- | lib/tests/modules/declare-bare-submodule-nested-option.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tests/modules/declare-bare-submodule-nested-option.nix b/lib/tests/modules/declare-bare-submodule-nested-option.nix new file mode 100644 index 00000000000..009dd4d6cb3 --- /dev/null +++ b/lib/tests/modules/declare-bare-submodule-nested-option.nix @@ -0,0 +1,18 @@ +{ lib, ... }: +let + inherit (lib) mkOption types; +in +{ + options.bare-submodule = mkOption { + type = types.submoduleWith { + modules = [ + { + options.nested = mkOption { + type = types.int; + default = 1; + }; + } + ]; + }; + }; +} |