depot/hosts/VEGAS/services/matrix/web-client.nix
Max 3f93dbadf1 VEGAS: add matrix service
Provides the following:
- Synapse homeserver
- Element web client
- Federation support
2022-01-14 22:49:38 +01:00

34 lines
973 B
Nix

{ lib, pkgs, tools, ... }:
let
inherit (tools.nginx) domain vhosts;
in
{
services.nginx.virtualHosts."chat.${domain}" = vhosts.static (pkgs.element-web.override {
conf = {
default_server_config."m.homeserver" = {
base_url = "https://matrix.${domain}:443";
server_name = tools.meta.domain;
};
disable_3pid_login = true;
disable_custom_urls = true;
brand = "Private Void Chat";
# TODO: integrations
enableLabs = true;
showLabsSettings = true;
features = with lib; flip genAttrs (_: "labs") [
"feature_custom_status"
"feature_custom_tags"
"feature_many_integration_managers"
"feature_new_spinner"
"feature_pinning"
"feature_state_counters"
];
default_federate = true;
default_theme = "dark";
roomDirectory.servers = [ domain "matrix.org" ];
piwik = false;
jitsi.preferredDomain = "meet.${domain}";
};
});
}