diff --git a/nixng/containers/matrix/heisenbridge/default.nix b/nixng/containers/matrix/heisenbridge/default.nix index f77fd95..7f694e0 100644 --- a/nixng/containers/matrix/heisenbridge/default.nix +++ b/nixng/containers/matrix/heisenbridge/default.nix @@ -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 '';