3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/lib/tests/modules/declare-loaOfSub-any-enable.nix

30 lines
487 B
Nix
Raw Normal View History

{ lib, ... }:
let
submod = { ... }: {
options = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = ''
Some descriptive text
'';
};
};
};
in
{
options = {
loaOfSub = lib.mkOption {
default = {};
example = {};
type = lib.types.loaOf (lib.types.submodule [ submod ]);
description = ''
Some descriptive text
'';
};
};
}