diff options
-rwxr-xr-x | host/Rory-nginx/services/matrix/conduit.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/matrix/conduit.nix b/host/Rory-nginx/services/matrix/conduit.nix index 4916a0c..38a2d3d 100755 --- a/host/Rory-nginx/services/matrix/conduit.nix +++ b/host/Rory-nginx/services/matrix/conduit.nix @@ -11,8 +11,21 @@ enable_lightning_bolt = true; max_concurrent_requests = 1000; allow_check_for_updates = false; + allow_registration = true; }; }; + systemd.services.matrix-conduit-reg-token = { + description = "Random registration token for Conduit."; + before = ["matrix-synapse.service"]; # So the registration can be used by Conduit. + after = ["matrix-synapse-reg-token.service"]; + + script = '' + echo Environment=CONDUIT_REGISTRATION_TOKEN=$(cat /var/lib/matrix-synapse/registration_shared_secret.txt) > /run/systemd/system/conduit.service.d/override.conf''; + serviceConfig = { + User = "root"; + Group = "root"; + }; + }; system.stateVersion = "22.11"; # DO NOT EDIT! } |