blob: 38a2d3d74951343f637720aada8ca47404bfe9e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ config, pkgs, lib, conduit, ... }:
{
services.matrix-conduit = {
package = conduit.packages.${pkgs.system}.default;
enable = true;
settings.global = {
address = "127.0.0.1";
server_name = "conduit.rory.gay";
database_backend = "rocksdb";
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!
}
|