diff --git a/lib/tests/modules/types-attrTag.nix b/lib/tests/modules/types-attrTag.nix index 82d6e3c17590..f30c1fc904f8 100644 --- a/lib/tests/modules/types-attrTag.nix +++ b/lib/tests/modules/types-attrTag.nix @@ -7,7 +7,7 @@ let inherit (lib) mkOption types; forceDeep = x: builtins.deepSeq x x; - mergedSubOption = (options.merged.type.getSubOptions options.merged.loc).extensible."merged."; + mergedSubOption = (options.merged.type.getSubOptions options.merged.loc).extensible; in { options = { diff --git a/lib/types.nix b/lib/types.nix index 591bcaf7dc9d..9c409f7e254c 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -919,12 +919,7 @@ let description = "attribute-tagged union"; descriptionClass = "noun"; getSubOptions = - prefix: - mapAttrs (tagName: tagOption: { - "${lib.showOption prefix}" = tagOption // { - loc = prefix ++ [ tagName ]; - }; - }) tags; + prefix: mapAttrs (tagName: tagOption: tagOption // { loc = prefix ++ [ tagName ]; }) tags; check = v: isAttrs v && length (attrNames v) == 1 && tags ? ${head (attrNames v)}; merge = loc: defs: