Commit 5468e680 authored by Colin's avatar Colin
Browse files

nixos/mautrix-meta: fix lax enable check

enabledInstances is an attrset: the previous logic would always pass and
result in, for example, a `mautrix-meta` and a
`mautrix-meta-registration` group being shipped to every nixos machine
whether mautrix was enabled or not.
parent 6c0dc572
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ in {
  };

  config = lib.mkMerge [
    (lib.mkIf (enabledInstances != []) {
    (lib.mkIf (enabledInstances != {}) {
      assertions = lib.mkMerge (lib.attrValues (lib.mapAttrs (name: cfg: [
        {
          assertion = cfg.settings.homeserver.domain != "" && cfg.settings.homeserver.address != "";