summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/matrix-appservice-discord.nix
blob: 3f2225f9244e03bddc9a68063729f8dfa2e545fb (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
{ 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";
      };
    };
   };
  system.stateVersion = "22.11"; # DO NOT EDIT!
}