nixos: services: matrix: fix deprecated option

This commit is contained in:
Bruno BELANYI 2024-01-03 23:37:27 +01:00
parent 10a3055136
commit 136bd342ff

View file

@ -104,17 +104,17 @@ in
extraConfigFiles = [ extraConfigFiles = [
cfg.mailConfigFile cfg.mailConfigFile
] ++ lib.optional (cfg.secretFile != null) cfg.secretFile; ] ++ lib.optional (cfg.secretFile != null) cfg.secretFile;
};
sliding-sync = { services.matrix-sliding-sync = {
enable = true; enable = true;
settings = { settings = {
SYNCV3_SERVER = "https://${matrixDomain}"; SYNCV3_SERVER = "https://${matrixDomain}";
SYNCV3_BINDADDR = "127.0.0.1:${toString cfg.slidingSync.port}"; SYNCV3_BINDADDR = "127.0.0.1:${toString cfg.slidingSync.port}";
};
environmentFile = cfg.slidingSync.secretFile;
}; };
environmentFile = cfg.slidingSync.secretFile;
}; };
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
@ -181,7 +181,7 @@ in
# Sliding sync # Sliding sync
"~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = { "~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
proxyPass = "http://${config.services.matrix-synapse.sliding-sync.settings.SYNCV3_BINDADDR}"; proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}";
}; };
}; };