summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-01-21 22:34:33 +0100
committerGitHub <noreply@github.com>2021-01-21 22:34:33 +0100
commit2a8591e088683dfbcc0c4f4a8d5a10172026a9a6 (patch)
tree7740b268877260dd4ef09b099b2be3996ae62f93
parente61a96d70af29ace8cd78d01af66fbfa8218c018 (diff)
parent7f2fcc45f734c1e73cef2d7063562b9e411c2614 (diff)
Merge pull request #110392 from Infinisil/rename-type
lib/modules: Set submodule type for renamed option sets
-rw-r--r--lib/modules.nix2
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 {