diff options
author | Colin <colin@uninsane.org> | 2024-04-05 20:05:39 +0000 |
---|---|---|
committer | Colin <colin@uninsane.org> | 2024-04-05 20:05:41 +0000 |
commit | 5468e6802aa060dee755b0019a612f605270d90d (patch) | |
tree | 78784138aa9eb38a240336ec5f1a6b8388707184 /nixos | |
parent | 6c0dc5723dac06bfa0ebc2f28b3b3a76ad0e9aac (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/matrix/mautrix-meta.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/matrix/mautrix-meta.nix b/nixos/modules/services/matrix/mautrix-meta.nix index b8a5cdc72065b..f0905c3af1297 100644 --- a/nixos/modules/services/matrix/mautrix-meta.nix +++ b/nixos/modules/services/matrix/mautrix-meta.nix @@ -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 != ""; |