2024-08-26 13:11:54 -04:00
|
|
|
{pkgs, ...}: let
|
2024-08-26 13:07:59 -04:00
|
|
|
secrets = import ../modules/secrets.nix;
|
|
|
|
in {
|
2024-08-24 22:16:51 -04:00
|
|
|
# Configure the Element web server
|
2024-08-26 13:11:54 -04:00
|
|
|
nixpkgs.config.element-web.conf = {
|
2024-08-24 22:16:51 -04:00
|
|
|
default_server_config = {
|
|
|
|
"m.homeserver" = {
|
|
|
|
base_url = "https://matrix.${secrets.jimDomain}";
|
|
|
|
server_name = "matrix.${secrets.jimDomain}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
branding = {
|
|
|
|
#welcome_background_url = "https://staging.${secrets.jimDomain}/images/backgrounds/bloxelcom-sunset.jpg";
|
|
|
|
#auth_header_logo_url = "https://staging.${secrets.jimDomain}/images/logos/bloxelcom.png";
|
|
|
|
};
|
|
|
|
embedded_pages = {
|
|
|
|
home_url = "https://www.${secrets.jimDomain}/";
|
|
|
|
};
|
|
|
|
disable_custom_urls = true;
|
|
|
|
disable_guests = true;
|
|
|
|
default_theme = "dark";
|
|
|
|
};
|
2024-08-26 13:07:59 -04:00
|
|
|
|
|
|
|
# Serve the Element page over Nginx
|
|
|
|
services.nginx.virtualHosts."chat.${secrets.jimDomain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
addSSL = true;
|
|
|
|
root = "${pkgs.element-web}";
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
}
|