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