Merge pull request #110392 from Infinisil/rename-type

lib/modules: Set submodule type for renamed option sets

Changed files
+1 -1
lib
+1 -1
lib/modules.nix
···
fromOpt = getAttrFromPath from options;
toOf = attrByPath to
(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
{
options = setAttrByPath from (mkOption {