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:
parent
6c0dc5723d
commit
5468e6802a
@ -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 != "";
|
||||
|
Loading…
Reference in New Issue
Block a user