2023-12-04 00:17:12 +02:00
|
|
|
{ config, depot, ... }:
|
2023-06-05 22:50:34 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
services.matrix = {
|
|
|
|
nodes.homeserver = [ "VEGAS" ];
|
|
|
|
nixos.homeserver = [
|
|
|
|
./homeserver.nix
|
|
|
|
./coturn.nix
|
|
|
|
./bridges/discord.nix
|
|
|
|
./federation.nix
|
|
|
|
./web-client.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
monitoring.blackbox.targets.matrix = {
|
2023-08-31 01:55:45 +03:00
|
|
|
address = "https://matrix.${depot.lib.meta.domain}/_matrix/federation/v1/version";
|
2023-06-05 22:50:34 +03:00
|
|
|
module = "https2xx";
|
|
|
|
};
|
2023-12-04 00:17:12 +02:00
|
|
|
|
|
|
|
dns.records = let
|
|
|
|
homeserverAddrs = map
|
|
|
|
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
|
|
|
config.services.matrix.nodes.homeserver;
|
|
|
|
in {
|
|
|
|
matrix.target = homeserverAddrs;
|
|
|
|
chat.target = homeserverAddrs;
|
|
|
|
stun.target = homeserverAddrs;
|
|
|
|
turn.target = homeserverAddrs;
|
|
|
|
};
|
2023-06-05 22:50:34 +03:00
|
|
|
}
|