Rename matrix-synapse module to matrix

This commit is contained in:
Jordan Holt 2024-07-21 11:28:16 +01:00
parent ddaa465004
commit 2f8f03faf8
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
3 changed files with 11 additions and 8 deletions

View File

@ -62,7 +62,7 @@
};
gitea.enable = true;
headscale.enable = true;
matrix-synapse = {
matrix = {
enable = true;
usePostgresql = databases.postgresql.enable;
bridges = [

View File

@ -43,7 +43,7 @@
./services/gitea-runner
./services/headscale
./services/mail
./services/matrix-synapse
./services/matrix
./services/nginx
./services/photoprism
./shell/git

View File

@ -6,17 +6,14 @@
}:
let
cfg = config.modules.services.matrix-synapse;
cfg = config.modules.services.matrix;
validBridges = [
"signal"
"whatsapp"
];
in {
options.modules.services.matrix-synapse = {
enable = lib.mkOption {
default = false;
example = true;
};
options.modules.services.matrix = {
enable = lib.mkEnableOption "matrix";
enableElementWeb = lib.mkOption {
default = true;
example = false;
@ -219,5 +216,11 @@ in {
};
} // commonBridgeSettings "mautrix-whatsapp";
};
services.matrix-sliding-sync = lib.mkIf cfg.slidingSync.enable {
enable = true;
environmentFile = null;
settings = { SYNCV3_SERVER = "https://${cfg.serverName}"; };
};
};
}