Repeated use of moduleType
or (extendModules foo).type
in attrsOf
can not use the name
parameter.
#177564
Labels
moduleType
or (extendModules foo).type
in attrsOf
can not use the name
parameter.
#177564
Describe the bug
For context,
moduleType
andextendModules
duplicate the configuration namespace, but with user-defined modules added.Extending the configuration more than once makes
name
throw a duplicate definition error.Steps To Reproduce
Suppose we have
then
will result in
but
causes an error because
name
is redefined in the second level.Expected behavior
name
does not throw an error.All names can be used.
Additional context
Discovered in #176557
matrix
module.This can be solved by defining
name
in specialArgs, or by making the parameter name configurable (creating PR in a minute).Notify maintainers
@infinisil
The text was updated successfully, but these errors were encountered: