give it as argument to each sub-module. With the type "types.attrsOf types.optionSet", you will obtain the name of the attribute in which the sub-modules are contained. svn path=/nixpkgs/trunk/; revision=17669