2019-08-07 21:40:26 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2020-07-17 10:56:15 +00:00
|
|
|
elementConfig = {
|
2020-06-03 17:07:44 +00:00
|
|
|
default_server_config."m.homeserver" = {
|
|
|
|
server_name = "maralorn.de";
|
|
|
|
base_url = "https://matrix.maralorn.de";
|
|
|
|
};
|
2020-06-03 17:05:39 +00:00
|
|
|
integrations_ui_url = "";
|
|
|
|
integgrations_rest_url = "";
|
|
|
|
integrations_widgets_urls = [ ];
|
2020-06-03 16:59:35 +00:00
|
|
|
roomDirectory.servers = [ "matrix.org" "maralorn.de" ];
|
|
|
|
branding.welcomeBackgroundUrl =
|
|
|
|
"https://cloud.maralorn.de/apps/theming/image/background";
|
2019-08-07 21:40:26 +00:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2020-07-17 10:56:15 +00:00
|
|
|
virtualHosts."element.maralorn.de" = {
|
2019-08-07 21:40:26 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2020-07-17 12:18:54 +00:00
|
|
|
root = pkgs.element-web.override (old: { conf = elementConfig; });
|
2019-08-07 21:40:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|