Submodules need a default value #161566
Labels
0.kind: bug
Something is broken
6.topic: developer experience
6.topic: module system
About "NixOS" module system internals
Describe the bug
Unconfigured submodules don't work unless they specify a default, which should always be
{ }
to avoid surprises.Steps To Reproduce
Expected behavior
The module system is clever enough to figure out that modules have their own defaults and are always attrsets, making
{ }
the obvious default.Possible implementation
This works, but it's too broad.
Perhaps
defaultValue
should be added to types, oremptyValue
could be renamed.Additional context
NixOS/nixops#1508 (comment)
Notify maintainers
@infinisil
The text was updated successfully, but these errors were encountered: