NixOS modules for matrix related services
Go to file
Daniel Lovbrotte Olsen ff787d410c Add documentation for new sliding-sync setup and upgrade info 2024-09-27 06:21:37 +02:00
sliding-sync sliding-sync: deprecate 2024-09-27 06:09:23 +02:00
synapse-module sliding-sync: deprecate 2024-09-27 06:09:23 +02:00
tests generate only one upstream per worker 2024-03-13 06:22:24 +01:00
.gitignore nginx-pipeline: add basic test 2024-01-27 07:52:26 +01:00
COPYING Add a license 2023-02-17 01:16:02 +01:00
MIGRATIONS.MD Add documentation for new sliding-sync setup and upgrade info 2024-09-27 06:21:37 +02:00
README.MD Add documentation for new sliding-sync setup and upgrade info 2024-09-27 06:21:37 +02:00
flake.lock nginx-pipeline: add basic test 2024-01-27 07:52:26 +01:00
flake.nix nginx-pipeline: add basic test 2024-01-27 07:52:26 +01:00
lib.nix fix generating multiple upstreams of same type 2024-03-13 07:39:59 +01:00
module.nix Import sliding sync from nixpkgs unstable 2023-09-24 03:32:54 +02:00

README.MD

For support and requests feel free to join #nixos-matrix-modules:dodsorf.as, uri

With matrix.YOURDOMAIN pointing at the server:

{
  imports = [ ./synapse-module ];

  services.matrix-synapse-next = {
    enable = true;

    workers.federationSenders = 1;
    workers.federationReceivers = 1;
    workers.initialSyncers = 1;
    workers.normalSyncers = 1;
    workers.eventPersisters = 2;
    workers.useUserDirectoryWorker = true;

    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 with some workers