Document non-interaction of mkRenamedOptionModule
and freeformType
or attrsOf
#242288
Labels
6.topic: documentation
Meta-discussion about documentation and its workflow
6.topic: module system
About "NixOS" module system internals
error: evaluation aborted with the following error message: 'cannot find attribute `services.kubo.settings.Experimental.AcceleratedDHTClient''
If it's not a true option, it's not guaranteed to exist, and
mkRenamedOptionModule
wouldn't be designed to deal with such a situation. Maybe we should have amkRenamedSettingModule
that works for attributes that may not exist? It won't be able to remove the attribute at the old location though (somethingmkRenamedOptionModule
can't do either). So then it may have to bemkRemovedSettingModule
? That way we force the user to remove or rename it. It'd be little more than an assertion though.cc @infinisil
Originally posted by @roberth in #241481 (comment)
The text was updated successfully, but these errors were encountered: