feat(matrix): Switch to conduwuit
This fixes support for the new sliding sync API.
This commit is contained in:
parent
a398790ef4
commit
3c6afa0c66
4 changed files with 807 additions and 139 deletions
configuration/services/conduit
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
flake-inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
|
@ -18,10 +20,12 @@ in
|
|||
|
||||
services.matrix-conduit = {
|
||||
enable = true;
|
||||
package = flake-inputs.conduwuit.packages.${pkgs.system}.default;
|
||||
settings.global = {
|
||||
address = "127.0.0.1";
|
||||
server_name = domain;
|
||||
database_backend = "rocksdb";
|
||||
new_user_displayname_suffix = "🦆";
|
||||
allow_check_for_updates = true;
|
||||
|
||||
# Set up delegation: https://docs.conduit.rs/delegation.html#automatic-recommended
|
||||
# This is primarily to make sliding sync work
|
||||
|
@ -44,11 +48,14 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Pass in the TURN secret via EnvironmentFile, not supported by
|
||||
# upstream module currently.
|
||||
#
|
||||
# See also https://gitlab.com/famedly/conduit/-/issues/314
|
||||
systemd.services.conduit.serviceConfig.EnvironmentFile = config.sops.secrets."turn/env".path;
|
||||
systemd.services.conduit.serviceConfig = {
|
||||
ExecStart = lib.mkForce "${config.services.matrix-conduit.package}/bin/conduwuit";
|
||||
# Pass in the TURN secret via EnvironmentFile, not supported by
|
||||
# upstream module currently.
|
||||
#
|
||||
# See also https://gitlab.com/famedly/conduit/-/issues/314
|
||||
EnvironmentFile = config.sops.secrets."turn/env".path;
|
||||
};
|
||||
|
||||
systemd.services.coturn.serviceConfig.SupplementaryGroups = [
|
||||
config.security.acme.certs."tlater.net".group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue