at 25.11-pre 523 B view raw
1{ lib, ... }: 2 3let 4 submod = 5 { ... }: 6 { 7 options = { 8 enable = lib.mkOption { 9 default = false; 10 example = true; 11 type = lib.types.bool; 12 description = '' 13 Some descriptive text 14 ''; 15 }; 16 }; 17 }; 18in 19 20{ 21 options = { 22 attrsOfSub = lib.mkOption { 23 default = { }; 24 example = { }; 25 type = lib.types.attrsOf (lib.types.submodule [ submod ]); 26 description = '' 27 Some descriptive text 28 ''; 29 }; 30 }; 31}