at 23.11-beta 848 B view raw
1{ lib, ... }: 2let 3 inherit (lib) types; 4in { 5 6 options = { 7 int = lib.mkOption { 8 type = types.lazyAttrsOf types.int; 9 }; 10 list = lib.mkOption { 11 type = types.lazyAttrsOf (types.listOf types.int); 12 }; 13 nonEmptyList = lib.mkOption { 14 type = types.lazyAttrsOf (types.nonEmptyListOf types.int); 15 }; 16 attrs = lib.mkOption { 17 type = types.lazyAttrsOf (types.attrsOf types.int); 18 }; 19 null = lib.mkOption { 20 type = types.lazyAttrsOf (types.nullOr types.int); 21 }; 22 submodule = lib.mkOption { 23 type = types.lazyAttrsOf (types.submodule {}); 24 }; 25 }; 26 27 config = { 28 int.a = lib.mkIf false null; 29 list.a = lib.mkIf false null; 30 nonEmptyList.a = lib.mkIf false null; 31 attrs.a = lib.mkIf false null; 32 null.a = lib.mkIf false null; 33 submodule.a = lib.mkIf false null; 34 }; 35 36}