mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 09:36:14 +01:00
wip
Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
parent
9245fcb024
commit
417c3dee36
|
@ -21,17 +21,18 @@ nglib.makeSystem {
|
||||||
-p 9898 \
|
-p 9898 \
|
||||||
-o @magic_rb:matrix.redalder.org \
|
-o @magic_rb:matrix.redalder.org \
|
||||||
'';
|
'';
|
||||||
|
homeserverURI = "https://matrix.redalder.org/";
|
||||||
in
|
in
|
||||||
pkgs.writeShellScript "heisenbridge"
|
pkgs.writeShellScript "heisenbridge"
|
||||||
''
|
''
|
||||||
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
|
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
|
||||||
|
|
||||||
[ -e "$REGISTRATION_FILE" ] || \
|
[ -e "$REGISTRATION_FILE" ] || \
|
||||||
${pkgs.heisenbridge}/bin/heisenbridge \
|
${pkgs.heisenbridge}/bin/heisenbridge '${homeserverURI}' \
|
||||||
-c "$REGISTRATION_FILE" \
|
-c "$REGISTRATION_FILE" \
|
||||||
${config} \
|
${config} \
|
||||||
--generate
|
--generate
|
||||||
${pkgs.heisenbridge}/bin/heisenbridge \
|
${pkgs.heisenbridge}/bin/heisenbridge '${homeserverURI}' \
|
||||||
-c "$REGISTRATION_FILE" \
|
-c "$REGISTRATION_FILE" \
|
||||||
${config}
|
${config}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue