Merge pull request #110392 from Infinisil/rename-type
lib/modules: Set submodule type for renamed option sets
This commit is contained in:
commit
2a8591e088
@ -895,7 +895,7 @@ rec {
|
|||||||
fromOpt = getAttrFromPath from options;
|
fromOpt = getAttrFromPath from options;
|
||||||
toOf = attrByPath to
|
toOf = attrByPath to
|
||||||
(abort "Renaming error: option `${showOption to}' does not exist.");
|
(abort "Renaming error: option `${showOption to}' does not exist.");
|
||||||
toType = let opt = attrByPath to {} options; in opt.type or null;
|
toType = let opt = attrByPath to {} options; in opt.type or (types.submodule {});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = setAttrByPath from (mkOption {
|
options = setAttrByPath from (mkOption {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user