tsuki/mautrix-facebook: remove

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-09 15:54:05 +02:00
parent 2b0968283d
commit 2a388e29a5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 0 additions and 82 deletions

View File

@ -1,79 +0,0 @@
{ secrets, ... }:
{
services.mautrix-facebook = {
enable = false;
configurePostgresql = true;
registrationData = {
# NOTE: This is a randomly generated UUID
inherit (secrets.keys.matrix.mautrix-facebook) as_token;
inherit (secrets.keys.matrix.mautrix-facebook) hs_token;
};
settings = {
homeserver = {
# TODO: connect via localhost
address = "https://matrix.nani.wtf";
domain = "nani.wtf";
};
appservice = rec {
address = "http://${hostname}:${toString port}";
bot_username = "facebookbot";
hostname = "0.0.0.0";
ephemeral_events = true;
port = secrets.ports.matrix.mautrix-facebook;
inherit (secrets.keys.matrix.mautrix-facebook) as_token;
inherit (secrets.keys.matrix.mautrix-facebook) hs_token;
};
bridge = {
encryption = {
allow = true;
default = true;
};
backfilling = {
initial_limit = 8000;
};
username_template = "facebook_{userid}";
sync_with_custom_puppets = false;
permissions = {
"@h7x4:nani.wtf" = "admin";
"nani.wtf" = "user";
};
};
logging = {
formatters = {
journal_fmt = {
format = "%(name)s: %(message)s";
};
};
handlers = {
journal = {
SYSLOG_IDENTIFIER = "mautrix-facebook";
class = "systemd.journal.JournalHandler";
formatter = "journal_fmt";
};
};
root = {
handlers = [
"journal"
];
level = "INFO";
};
version = 1;
};
manhole = {
enabled = false;
};
metrics = {
enabled = false;
};
};
};
}

View File

@ -1,7 +1,6 @@
{ pkgs, lib, config, secrets, ... }: {
imports = [
./bridges/mautrix-facebook.nix
./bridges/mx-puppet-discord.nix
./bridges/matrix-appservice-irc.nix
@ -77,8 +76,6 @@
# The files need to be owned by matrix-synapse
app_service_config_files = [
"/var/lib/matrix-synapse/discord-registration.yaml"
# (pkgs.writeText "facebook-registrations.yaml" (builtins.toJSON config.services.mautrix-facebook.registrationData))
"/var/lib/matrix-synapse/facebook-registration.yaml"
"/var/lib/matrix-synapse/irc-registration.yml"
];