k3s: fix heisenbridge not being reachable from synapse

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-11-26 01:12:15 +01:00
parent 3aef60fee8
commit 0b6b4e17cb
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -20,15 +20,14 @@
init.services.heisenbridge = {
enabled = true;
# heisenbridge needs to retry the connection and task restarting does not work currently
shutdownOnExit = false;
shutdownOnExit = true;
script = pkgs.writeShellScript "heisenbridge" ''
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
${getExe' pkgs.heisenbridge "heisenbridge"} 'https://matrix.redalder.org/' \
-c "$REGISTRATION_FILE" \
$([ -e "$REGISTRATION_FILE" ] || echo "--generate") \
-l 127.0.0.1 \
-l 0.0.0.0 \
-p 9898 \
-o @magic_rb:matrix.redalder.org
'';