Remove matrix-sliding-sync

since matrix-synapse incorporated its functionality.
This commit is contained in:
Jakob Lechner 2024-11-15 00:32:35 +01:00
parent 1025fbc46f
commit 98881dcfbc
5 changed files with 3 additions and 41 deletions

View file

@ -21,16 +21,6 @@ in
};
};
};
sliding-sync = {
port = mkOption {
description = "TCP port for synapse service.";
type = port;
};
secretFile = mkOption {
type = path;
description = "Location of the file to set secret environment variables.";
};
};
fqdn = mkOption {
type = str;
description = ''
@ -92,7 +82,6 @@ in
imports = [
./mautrix-signal.nix
./mautrix-whatsapp.nix
./sliding-sync.nix
./synapse.nix
];
}

View file

@ -1,18 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.jalr.matrix;
in
lib.mkIf cfg.enable {
services.matrix-sliding-sync = {
enable = true;
settings = {
SYNCV3_SERVER = "https://${cfg.fqdn}";
SYNCV3_BINDADDR = "127.0.0.1:${toString cfg.sliding-sync.port}";
};
environmentFile = cfg.sliding-sync.secretFile;
};
services.nginx.virtualHosts."${cfg.fqdn}".locations."/_matrix/client/unstable/org.matrix.msc3575/sync" = {
proxyPass = "http://127.0.0.1:${toString cfg.sliding-sync.port}";
};
}