mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
29 lines
491 B
Nix
29 lines
491 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
submod = { ... }: {
|
|
options = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
description = ''
|
|
Some descriptive text
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
in
|
|
|
|
{
|
|
options = {
|
|
attrsOfSub = lib.mkOption {
|
|
default = {};
|
|
example = {};
|
|
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
|
|
description = ''
|
|
Some descriptive text
|
|
'';
|
|
};
|
|
};
|
|
}
|