Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-09-22 15:32:03 +02:00
parent 9245fcb024
commit 417c3dee36
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -21,17 +21,18 @@ nglib.makeSystem {
-p 9898 \
-o @magic_rb:matrix.redalder.org \
'';
homeserverURI = "https://matrix.redalder.org/";
in
pkgs.writeShellScript "heisenbridge"
''
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
[ -e "$REGISTRATION_FILE" ] || \
${pkgs.heisenbridge}/bin/heisenbridge \
${pkgs.heisenbridge}/bin/heisenbridge '${homeserverURI}' \
-c "$REGISTRATION_FILE" \
${config} \
--generate
${pkgs.heisenbridge}/bin/heisenbridge \
${pkgs.heisenbridge}/bin/heisenbridge '${homeserverURI}' \
-c "$REGISTRATION_FILE" \
${config}
'';