2024-10-27 00:48:10 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-11-19 14:49:57 +00:00
|
|
|
{
|
2023-10-29 03:48:26 +00:00
|
|
|
default_server_config = {
|
|
|
|
"m.homeserver" = {
|
2024-10-27 00:48:10 +00:00
|
|
|
base_url = "https://matrix.${config.pub-solar-os.networking.domain}";
|
|
|
|
server_name = "${config.pub-solar-os.networking.domain}";
|
2023-10-29 03:48:26 +00:00
|
|
|
};
|
|
|
|
"m.identity_server" = {
|
|
|
|
base_url = "";
|
|
|
|
};
|
|
|
|
};
|
2023-11-19 14:49:57 +00:00
|
|
|
setting_defaults = {
|
|
|
|
custom_themes = (lib.modules.importJSON "${pkgs.element-themes}").config;
|
|
|
|
};
|
|
|
|
default_theme = "light";
|
|
|
|
default_country_code = "DE";
|
2023-10-29 03:48:26 +00:00
|
|
|
permalink_prefix = "https://matrix.to";
|
|
|
|
disable_custom_urls = true;
|
|
|
|
disable_guests = true;
|
|
|
|
brand = "Element Solar";
|
|
|
|
|
|
|
|
# TODO: Configure these
|
|
|
|
integrations_ui_url = "";
|
|
|
|
integrations_rest_url = "";
|
|
|
|
integrations_widgets_urls = "";
|
|
|
|
integrations_jitsi_widget_url = "";
|
|
|
|
|
|
|
|
bug_report_endpoint_url = "https://element.io/bugreports/submit";
|
|
|
|
show_labs_settings = true;
|
|
|
|
room_directory = {
|
|
|
|
servers = [ "matrix.org" ];
|
|
|
|
};
|
|
|
|
# TODO: This looks wrong
|
|
|
|
enable_presence_by_hs_url = "\n";
|
|
|
|
embedded_pages = {
|
|
|
|
homeUrl = "";
|
|
|
|
};
|
|
|
|
branding = {
|
|
|
|
auth_footer_links = [
|
|
|
|
{
|
|
|
|
text = "Privacy";
|
|
|
|
url = "https://pub.solar/privacy";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
# FUTUREWORK: Replace with pub.solar logo
|
|
|
|
auth_header_logo_url = "themes/element/img/logos/element-logo.svg";
|
|
|
|
};
|
|
|
|
}
|