diff --git a/hosts/jokum/services/matrix/element.nix b/hosts/jokum/services/matrix/element.nix index 00c6489..3b2fe28 100644 --- a/hosts/jokum/services/matrix/element.nix +++ b/hosts/jokum/services/matrix/element.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: - -{ +let + synapse-cfg = config.services.matrix-synapse-next; +in { services.nginx.virtualHosts."chat.pvv.ntnu.no" = { enableACME = true; forceSSL = true; @@ -41,7 +42,8 @@ ]; enable_presence_by_hs_url = { "https://matrix.org" = false; - "https://matrix.dodsorf.as" = false; + # "https://matrix.dodsorf.as" = false; + "${synapse-cfg.settings.public_baseurl}" = synapse-cfg.settings.presence.enabled; }; }; };