diff --git a/modules/lib/default.nix b/modules/lib/default.nix index ec446745..da2e1dc7 100644 --- a/modules/lib/default.nix +++ b/modules/lib/default.nix @@ -132,9 +132,9 @@ in # a -> a -> a # see https://nlewo.github.io/nixos-manual-sphinx/development/option-types.xml.html - # by default enums cannot be merged, but they keep their passed value in `functor.payload`. + # by default enums cannot be merged, but they keep their passed value in `functor.payload.values`. # `functor.binOp` can merge those values - mergeEnums = a: b: lib.types.enum (a.functor.binOp a.functor.payload b.functor.payload); + mergeEnums = a: b: lib.types.enum (a.functor.binOp a.functor.payload b.functor.payload).values; # string # returns the current release version of nixos or home-manager. throws an evaluation error if neither are