1
0
Fork 0
nixos-config/system/riot.nix
2020-04-26 17:40:36 +02:00

34 lines
886 B
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";
};
};
in {
services.nginx = {
enable = true;
virtualHosts."riot.maralorn.de" = {
enableACME = true;
forceSSL = true;
root = pkgs.riot-web.override (old: { conf = riot_config; });
};
};
}