summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/matrix-appservice-discord.nix
blob: 43c26ca1a5950f625d9115b46bbaec7325bb5fba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  pkgs,
  lib,
  ...
}:

{
  # Discord bridge
  services.matrix-appservice-discord = {
    enable = false; # Alicia - figure out secret first...
    environmentFile = /etc/keyring/matrix-appservice-discord/tokens.env;
    # The appservice is pre-configured to use SQLite by default.
    # It's also possible to use PostgreSQL.
    settings = {
      bridge = {
        domain = "rory.gay";
        homeserverUrl = "https://matrix.rory.gay";
      };

      # The service uses SQLite by default, but it's also possible to use
      # PostgreSQL instead:
      database = {
        #  filename = ""; # empty value to disable sqlite
        connString = "postgres://postgres@127.0.0.1/matrix-appservice-discord";
      };
    };
  };

}