40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ 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";
|
|
};
|
|
};
|
|
inherit (import ../lib) unstable;
|
|
in {
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts."riot.maralorn.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = unstable.riot-web;
|
|
locations."/config.json" = {
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
return 200 '${builtins.toJSON riot_config}';
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|