2019-08-07 21:40:26 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
riot_config = {
|
|
|
|
default_hs_url = "https://matrix.maralorn.de";
|
|
|
|
default_is_url = "https://vector.im";
|
|
|
|
integrations_ui_url = "";
|
|
|
|
integrations_rest_url = "";
|
|
|
|
integrations_widgets_urls = [ ];
|
|
|
|
bug_report_endpoint_url = "https://riot.im/bugreports/submit";
|
|
|
|
welcomeUserId = "@riot-bot:matrix.org";
|
|
|
|
piwik = false;
|
|
|
|
features = {
|
|
|
|
feature_lazyloading = "enable";
|
|
|
|
feature_room_breadcrumbs = "enable";
|
|
|
|
};
|
|
|
|
roomDirectory = { servers = [ "matrix.org" "maralorn.de" ]; };
|
|
|
|
branding = {
|
|
|
|
welcomeBackgroundUrl =
|
|
|
|
"https://cloud.maralorn.de/apps/theming/image/background";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."riot.maralorn.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2020-04-26 13:29:23 +00:00
|
|
|
root = pkgs.riot-web.overrideAttrs (old: { conf = riot_config; });
|
2019-08-07 21:40:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|