mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2024-12-22 10:57:29 +01:00
NixOS modules for matrix related services
Daniel Olsen
952bab1d6e
Enables replication listener if you have any workers for simplicity send_federation is automatically set to false if federation_sender_instances is set so we don't have to do it |
||
---|---|---|
synapse-module | ||
flake.nix | ||
README.MD |
With matrix.YOURDOMAIN pointing at the server:
{
imports = [ ./synapse-module ];
services.matrix-synapse-next = {
enable = true;
workers.federationSenders = 1;
workers.federationReceivers = 1;
enableNginx = true;
settings = {
server_name = "YOURDOMAIN";
database = {
name = "psycopg2";
args = {
host = "localhost";
user = "synapse";
password = "synapse";
dbname = "synapse";
};
};
};
};
services.redis.servers."".enable = true;
}
is ~enough to get a functional matrix-server running one federation sender and one federation receiver