2022-01-22 21:42:57 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2023-02-02 18:51:47 +01:00
|
|
|
let
|
|
|
|
synapse-cfg = config.services.matrix-synapse-next;
|
|
|
|
in {
|
2022-01-22 21:42:57 +01:00
|
|
|
services.nginx.virtualHosts."chat.pvv.ntnu.no" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
root = pkgs.element-web.override {
|
|
|
|
conf = {
|
|
|
|
default_server_config."m.homeserver" = {
|
|
|
|
base_url = "https://matrix.pvv.ntnu.no";
|
|
|
|
server_name = "pvv.ntnu.no";
|
|
|
|
};
|
|
|
|
disable_3pid_login = true;
|
|
|
|
# integrations_ui_url = "https://dimension.dodsorf.as/riot";
|
|
|
|
# integrations_rest_url = "https://dimension.dodsorf.as/api/v1/scalar";
|
|
|
|
# integrations_widgets_urls = [
|
|
|
|
# "https://dimension.dodsorf.as/widgets"
|
|
|
|
# ];
|
|
|
|
# integration_jitsi_widget_url = "https://dimension.dodsorf.as/widgets/jitsi";
|
|
|
|
defaultCountryCode = "NO";
|
|
|
|
showLabsSettings = true;
|
|
|
|
features = {
|
|
|
|
feature_latex_maths = true;
|
|
|
|
feature_pinning = true;
|
2024-03-05 05:28:13 +01:00
|
|
|
feature_render_reaction_images = true;
|
2022-01-22 21:42:57 +01:00
|
|
|
feature_state_counters = true;
|
2024-03-05 05:28:13 +01:00
|
|
|
# element call group calls
|
|
|
|
feature_group_calls = true;
|
2022-01-22 21:42:57 +01:00
|
|
|
};
|
|
|
|
default_theme = "dark";
|
2022-12-09 13:34:54 +01:00
|
|
|
room_directory.servers = [
|
2022-01-22 21:42:57 +01:00
|
|
|
"pvv.ntnu.no"
|
2024-03-05 05:28:13 +01:00
|
|
|
"matrixrooms.info"
|
2022-12-09 13:25:01 +01:00
|
|
|
"matrix.omegav.no"
|
2022-01-22 21:42:57 +01:00
|
|
|
"matrix.org"
|
|
|
|
"gitter.im"
|
|
|
|
"mozilla.org"
|
|
|
|
"kde.org"
|
|
|
|
"t2bot.io"
|
|
|
|
"fosdem.org"
|
|
|
|
"dodsorf.as"
|
2024-03-05 05:28:13 +01:00
|
|
|
"nani.wtf"
|
2022-01-22 21:42:57 +01:00
|
|
|
];
|
|
|
|
enable_presence_by_hs_url = {
|
|
|
|
"https://matrix.org" = false;
|
2023-02-02 18:51:47 +01:00
|
|
|
# "https://matrix.dodsorf.as" = false;
|
|
|
|
"${synapse-cfg.settings.public_baseurl}" = synapse-cfg.settings.presence.enabled;
|
2022-01-22 21:42:57 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|