2024-07-08 20:24:23 +03:00
|
|
|
{ cluster, depot, ... }:
|
2021-10-16 21:23:35 +03:00
|
|
|
let
|
2023-08-31 01:55:45 +03:00
|
|
|
inherit (depot.lib.meta) domain;
|
2021-10-16 21:23:35 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.matrix-appservice-discord = {
|
|
|
|
enable = true;
|
2024-07-08 20:24:23 +03:00
|
|
|
environmentFile = cluster.config.services.matrix.secrets.discordAppServiceToken.path;
|
2021-10-16 21:23:35 +03:00
|
|
|
settings = {
|
|
|
|
bridge = {
|
|
|
|
inherit domain;
|
|
|
|
homeserverUrl = "https://matrix.${domain}:443";
|
|
|
|
disablePresence = false;
|
|
|
|
disableTypingNotifications = false;
|
|
|
|
disableDeletionForwarding = false;
|
|
|
|
enableSelfServiceBridging = true;
|
|
|
|
disableReadReceipts = false;
|
|
|
|
disableJoinLeaveNotifications = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|