diff options
author | Silvan Mosberger <contact@infinisil.com> | 2021-01-21 22:34:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 22:34:33 +0100 |
commit | 2a8591e088683dfbcc0c4f4a8d5a10172026a9a6 (patch) | |
tree | 7740b268877260dd4ef09b099b2be3996ae62f93 | |
parent | e61a96d70af29ace8cd78d01af66fbfa8218c018 (diff) | |
parent | 7f2fcc45f734c1e73cef2d7063562b9e411c2614 (diff) |
Merge pull request #110392 from Infinisil/rename-type
lib/modules: Set submodule type for renamed option sets
-rw-r--r-- | lib/modules.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index 3f2bfd478b0d..33a0d84a6d7f 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -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 { |