git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #110392 from Infinisil/rename-type

lib/modules: Set submodule type for renamed option sets

commit2a8591e088683dfbcc0c4f4a8d5a10172026a9a6 authorSilvan Mosberger <contact@infinisil.com> dateThu 21 Jan 2021, 22:34 (6 years ago) parente61a96d7f2fcc4
1 file changed+1−1
lib/modules.nix+1−1
lib/modules.nix+1−1
@@ -895,7 +895,7 @@ rec {
895895 fromOpt = getAttrFromPath from options;
896896 toOf = attrByPath to
897897 (abort "Renaming error: option `${showOption to}' does not exist.");
898− toType = let opt = attrByPath to {} options; in opt.type or null;
898+ toType = let opt = attrByPath to {} options; in opt.type or (types.submodule {});
899899 in
900900 {
901901 options = setAttrByPath from (mkOption {