@@ -62,6 +62,8 @@ rec {
6262 ‘type’: A module system type representing the module set as a submodule,
6363 to be extended by configuration from the containing module set.
6464
65+ This is also available as the module argument ‘moduleType’.
66+
6567 ‘extendModules’: A function similar to ‘evalModules’ but building on top
6668 of the module set. Its arguments, ‘modules’ and ‘specialArgs’ are
6769 added to the existing values.
@@ -74,6 +76,8 @@ rec {
7476 override existing configuration fundamentally requires a new
7577 fixpoint to be constructed.
7678
79+ This is also available as a module argument.
80+
7781 ‘_module’: A portion of the configuration tree which is elided from
7882 ‘config’. It contains some values that are mostly internal to the
7983 module system implementation.
@@ -146,6 +150,7 @@ rec {
146150 config = {
147151 _module.args = {
148152 inherit extendModules;
153+ moduleType = type;
149154 } // args;
150155 };
151156 };