summaryrefslogtreecommitdiff
path: root/flora/services/element.nix
blob: d0621fa533fa110aa9b7e53d9ca71434c24bc0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ config, lib, pkgs, ... }:
let
  clientConfig."m.homeserver".base_url = "https://raccoon.college";
in
{
  services.nginx.virtualHosts."chat.stuebinm.eu" = {
    enableACME = true;
    forceSSL = true;
    serverAliases = [
      "chat.stuebinm.eu"
    ];

    root = pkgs.element-web.override {
      conf = {
        default_server_config = null;
        default_server_name = "raccoon.college";
        show_labs_settings = true;
        disable_guests = true;
        brand = "meow";
        integrations_widgets_urls = [];
        integrations_ui_url = null;
        integrations_rest_url = null;
        default_theme = "dark";
        room_directory.servers = [ "raccoon.college" ];
        setting_defaults.breadcrumbs = false;
        jitsi.preferred_domain = "meet.ffmuc.net";
      };
    };
  };
}