services.mautrix-discord.settings

NixOS option

config.yaml configuration as a Nix attribute set. Configuration options should match those described in example-config.yaml. Secret tokens should be specified using environmentFile instead of this world-readable attribute set.

type: YAML 1.1 value
Default
{
  appservice = {
    address = "http://localhost:29334";
    as_token = "This value is generated when generating the registration";
    bot = {
      avatar = "mxc://maunium.net/nIdEykemnwdisvHbpxflpDlC";
      displayname = "Discord bridge bot";
      username = "discordbot";
    };
    database = {
      type = "sqlite3";
      uri = "file:/var/lib/mautrix-discord/mautrix-discord.db?_txlock=immediate";
    };
    hostname = "0.0.0.0";
    hs_token = "This value is generated when generating the registration";
    id = "discord";
    port = 29334;
  };
  bridge = {
    permissions = {
      "*" = "relay";
    };
  };
  homeserver = {
    address = "";
    domain = "";
  };
  logging = {
    min_level = "info";
    writers = [
      {
        format = "pretty-colored";
        time_format = " ";
        type = "stdout";
      }
    ];
  };
}
Example
{
  homeserver = {
    address = "http://localhost:8008";
    domain = "example.com";
  };

  bridge.permissions = {
    "example.com" = "user";
    "@admin:example.com" = "admin";
  };
}
declared in: nixos/modules/services/matrix/mautrix-discord.nixView source on NixOS/nixpkgs →