mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #110392 from Infinisil/rename-type
lib/modules: Set submodule type for renamed option sets
This commit is contained in:
commit
2a8591e088
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ rec {
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue