diff --git a/lib/types.nix b/lib/types.nix index 783e07cdc721..1e7abf36535f 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -182,16 +182,6 @@ rec { substSubModules = m: nullOr (elemType.substSubModules m); }; - functionTo = elemType: mkOptionType { - name = "function that evaluates to a(n) ${elemType.name}"; - check = isFunction; - merge = loc: defs: - fnArgs: elemType.merge loc (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs); - getSubOptions = elemType.getSubOptions; - getSubModules = elemType.getSubModules; - substSubModules = m: functionTo (elemType.substSubModules m); - }; - submodule = opts: let opts' = toList opts;