summary refs log blame commit diff
path: root/lib/tests/modules/declare-attrsOfSub-any-enable.nix
blob: 986d07227e13b706416ebfcdda6a4258fe66b785 (plain) (tree)


















                               
                               

                   
                                                                





                             
{ 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
      '';
    };
  };
}