1
1
mirror of https://github.com/dali99/nixos-matrix-modules.git synced 2024-12-22 02:47:29 +01:00
NixOS modules for matrix related services
Go to file
Daniel Olsen bedede1e6d Import sliding sync from nixpkgs unstable
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Emily <55066419+emilylange@users.noreply.github.com>
2023-09-24 03:32:54 +02:00
pkgs/matrix-sliding-sync Import sliding sync from nixpkgs unstable 2023-09-24 03:32:54 +02:00
sliding-sync Import sliding sync from nixpkgs unstable 2023-09-24 03:32:54 +02:00
synapse-module fix: don't force enableACME to allow useACMEHost 2023-07-27 22:10:46 +02:00
COPYING Add a license 2023-02-17 01:16:02 +01:00
flake.lock introduce matrix-lib 2023-01-20 08:11:33 +01:00
flake.nix Import sliding sync from nixpkgs unstable 2023-09-24 03:32:54 +02:00
lib.nix introduce matrix-lib 2023-01-20 08:11:33 +01:00
module.nix Import sliding sync from nixpkgs unstable 2023-09-24 03:32:54 +02:00
README.MD Update README.MD 2023-09-11 00:04:19 +02:00

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