summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/matrix-appservice-discord.nix
blob: 3041aaa525568c409414a255a1515a8f7937f61d (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
{ ... }:

{
  # 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";
      };
    };
  };

}