VEGAS/matrix: add Discord bridge
This commit is contained in:
parent
3f93dbadf1
commit
eea7ccf7a3
3 changed files with 31 additions and 0 deletions
30
hosts/VEGAS/services/matrix/bridges/discord.nix
Normal file
30
hosts/VEGAS/services/matrix/bridges/discord.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -46,6 +46,7 @@ let
|
||||||
cfg = config.services.matrix-synapse;
|
cfg = config.services.matrix-synapse;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./bridges/discord.nix
|
||||||
./federation.nix
|
./federation.nix
|
||||||
./web-client.nix
|
./web-client.nix
|
||||||
];
|
];
|
||||||
|
|
BIN
secrets/matrix-appservice-discord-token.age
Normal file
BIN
secrets/matrix-appservice-discord-token.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue