summaryrefslogtreecommitdiff
path: root/nix/modules/conduit.nix
blob: ce2c23e688af4218597be1944a0ebf6e2a96819c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, ... }:
{
  services.matrix-conduit = {
    enable = lib.mkDefault config.monorepo.profiles.server.enable;
    settings.global = {
      server_name = "matrix.${config.monorepo.vars.remoteHost}";
      trusted_servers = [
        "matrix.org"
        "nixos.org"
      ];
      address = "0.0.0.0";
      port = 6167;
      allow_registration = true;
    };
  };
}