nix-config/hosts/sisyphe/features/services/synapse-matrix.nix
harry123 8a522c525c Refactor Nix configurations to update URLs from hypervirtual.world to rougebordeaux.xyz
- Updated flake.nix to change Alejandra and other inputs to follow the new repository structure.
- Modified uptime-kuma configurations to reflect the new domain for Caddy reverse proxy settings.
- Adjusted various multimedia services in Sisyphe to use the new domain for Caddy virtual hosts.
- Disabled the Sabnzbd service in Sisyphe and updated its Caddy configuration.
- Corrected multiple service configurations in Sisyphe to point to the new domain, including Grafana, Nextcloud, and Synapse Matrix.
- Ensured all references to hypervirtual.world are replaced with rougebordeaux.xyz across all relevant files.
2025-05-08 16:02:47 +02:00

92 lines
1.6 KiB
Nix

{
pkgs,
config,
lib,
...
}:
let
baseUrl = "https://talk.rougebordeaux.xyz";
in
{
networking.domain = "rougebordeaux.xyz";
sops.secrets.matrix_data = {
format = "yaml";
owner = "matrix-synapse";
};
services.matrix-synapse = {
enable = true;
settings = {
server_name = "rougebordeaux.xyz";
public_baseurl = baseUrl;
enable_registration = false;
enable_metrics = true;
listeners = [
{
port = 8008;
bind_addresses = [
"::1"
"0.0.0.0"
];
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = [
"client"
"federation"
];
compress = true;
}
];
}
{
port = 9000;
type = "metrics";
tls = false;
bind_addresses = [
"::1"
"127.0.0.1"
];
resources = [ ];
}
];
};
extras = [
"systemd"
"postgres"
"url-preview"
"user-search"
];
extraConfigFiles = [ "/run/secrets/matrix_data" ];
};
/*
services.mautrix-discord = {
enable = true;
environmentFile = "";
settings = {
homeserver = {
address = "http://localhost:8008";
domain = "rougebordeaux.xyz";
};
appservice = {
provisioning.enabled = false;
id = "discord";
public = {
};
database = "";
};
};
};
*/
}