From 4e26f2df34b84ed0511425062f53bcbc95904077 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Fri, 26 Jan 2024 12:50:59 +0000 Subject: [PATCH] minor cleanup --- modules/discord-matrix-bridge.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/discord-matrix-bridge.nix b/modules/discord-matrix-bridge.nix index a3d0f77..1eeba78 100644 --- a/modules/discord-matrix-bridge.nix +++ b/modules/discord-matrix-bridge.nix @@ -2,12 +2,7 @@ root_host = "grimmauld.de"; bridge_port = 9005; # netstat -nlp | grep 9005 in { - age.secrets = { - matrix_discord_bridge_token = { - file = ../secrets/matrix_discord_bridge_token.age; -# mode = "0600"; - }; - }; + age.secrets.matrix_discord_bridge_token.file = ../secrets/matrix_discord_bridge_token.age; services.matrix-synapse-next.settings.app_service_config_files = [ "/var/lib/matrix-synapse/discord-registration.yaml" ]; @@ -20,11 +15,11 @@ in { bridge = { enableSelfServiceBridging = true; domain = root_host; - homeserverUrl = "https://grimmauld.de"; # fixme does this work? Potentially need root_host instead + homeserverUrl = "https://${root_host}"; }; }; port = bridge_port; - localpart = "_discord_bot"; # fixme + localpart = "_discord_bot"; environmentFile = config.age.secrets.matrix_discord_bridge_token.path; }; }