From 2a388e29a5c0567d6f9e9559368cc7bd179e1ad2 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 9 Jun 2024 15:54:05 +0200 Subject: [PATCH] tsuki/mautrix-facebook: remove --- .../matrix/bridges/mautrix-facebook.nix | 79 ------------------- hosts/tsuki/services/matrix/default.nix | 3 - 2 files changed, 82 deletions(-) delete mode 100644 hosts/tsuki/services/matrix/bridges/mautrix-facebook.nix diff --git a/hosts/tsuki/services/matrix/bridges/mautrix-facebook.nix b/hosts/tsuki/services/matrix/bridges/mautrix-facebook.nix deleted file mode 100644 index d07baca..0000000 --- a/hosts/tsuki/services/matrix/bridges/mautrix-facebook.nix +++ /dev/null @@ -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; - }; - }; - }; -} diff --git a/hosts/tsuki/services/matrix/default.nix b/hosts/tsuki/services/matrix/default.nix index cd28e39..25ae0dd 100644 --- a/hosts/tsuki/services/matrix/default.nix +++ b/hosts/tsuki/services/matrix/default.nix @@ -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" ];