1{ lib, ... }: 2let 3 inherit (lib) types mkOption; 4in 5{ 6 options.number = mkOption { 7 type = types.submodule ({ 8 freeformType = types.attrsOf (types.either types.int types.int); 9 }); 10 default = { 11 int = 42; 12 }; # should not emit a warning 13 }; 14}