Rename matrix-synapse module to matrix

This commit is contained in:
2024-07-21 11:28:16 +01:00
parent ddaa465004
commit 2f8f03faf8
3 changed files with 11 additions and 8 deletions

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}"; };
};
};
}