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.
This commit is contained in:
Colin 2024-04-05 20:05:39 +00:00
parent 6c0dc5723d
commit 5468e6802a
1 changed files with 1 additions and 1 deletions

View File

@ -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 != "";