VEGAS/matrix: add Discord bridge

This commit is contained in:
Max Headroom 2021-10-16 20:23:35 +02:00
parent 3f93dbadf1
commit eea7ccf7a3
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ config, tools, ... }:
let
inherit (tools.meta) domain;
in
{
age.secrets = {
matrix-appservice-discord-token = {
file = ../../../../../secrets/matrix-appservice-discord-token.age;
owner = "root";
group = "root";
mode = "0400";
};
};
services.matrix-appservice-discord = {
enable = true;
environmentFile = config.age.secrets.matrix-appservice-discord-token.path;
settings = {
bridge = {
inherit domain;
homeserverUrl = "https://matrix.${domain}:443";
disablePresence = false;
disableTypingNotifications = false;
disableDeletionForwarding = false;
enableSelfServiceBridging = true;
disableReadReceipts = false;
disableJoinLeaveNotifications = true;
};
};
};
}

View file

@ -46,6 +46,7 @@ let
cfg = config.services.matrix-synapse;
in {
imports = [
./bridges/discord.nix
./federation.nix
./web-client.nix
];

Binary file not shown.