mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
30 lines
487 B
Nix
30 lines
487 B
Nix
|
{ 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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|