Rename matrix-synapse module to matrix
This commit is contained in:
parent
ddaa465004
commit
2f8f03faf8
@ -62,7 +62,7 @@
|
|||||||
};
|
};
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
headscale.enable = true;
|
headscale.enable = true;
|
||||||
matrix-synapse = {
|
matrix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
usePostgresql = databases.postgresql.enable;
|
usePostgresql = databases.postgresql.enable;
|
||||||
bridges = [
|
bridges = [
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
./services/gitea-runner
|
./services/gitea-runner
|
||||||
./services/headscale
|
./services/headscale
|
||||||
./services/mail
|
./services/mail
|
||||||
./services/matrix-synapse
|
./services/matrix
|
||||||
./services/nginx
|
./services/nginx
|
||||||
./services/photoprism
|
./services/photoprism
|
||||||
./shell/git
|
./shell/git
|
||||||
|
@ -6,17 +6,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.services.matrix-synapse;
|
cfg = config.modules.services.matrix;
|
||||||
validBridges = [
|
validBridges = [
|
||||||
"signal"
|
"signal"
|
||||||
"whatsapp"
|
"whatsapp"
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
options.modules.services.matrix-synapse = {
|
options.modules.services.matrix = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkEnableOption "matrix";
|
||||||
default = false;
|
|
||||||
example = true;
|
|
||||||
};
|
|
||||||
enableElementWeb = lib.mkOption {
|
enableElementWeb = lib.mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
example = false;
|
example = false;
|
||||||
@ -219,5 +216,11 @@ in {
|
|||||||
};
|
};
|
||||||
} // commonBridgeSettings "mautrix-whatsapp";
|
} // commonBridgeSettings "mautrix-whatsapp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.matrix-sliding-sync = lib.mkIf cfg.slidingSync.enable {
|
||||||
|
enable = true;
|
||||||
|
environmentFile = null;
|
||||||
|
settings = { SYNCV3_SERVER = "https://${cfg.serverName}"; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user