35 lines
770 B
Nix
35 lines
770 B
Nix
{
|
|
self,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
# Native NixOS 25.11 mautrix-discord module
|
|
# Replaces the nix-matrix-appservices discord configuration
|
|
services.mautrix-discord = {
|
|
enable = true;
|
|
registerToSynapse = true;
|
|
settings = {
|
|
homeserver = {
|
|
address = "https://sealight.xyz";
|
|
domain = "sealight.xyz";
|
|
};
|
|
appservice = {
|
|
id = "discord";
|
|
bot_username = "discordbridge";
|
|
address = "http://localhost:29188";
|
|
port = 29188;
|
|
# Uses SQLite by default, can switch to PostgreSQL:
|
|
# database = "postgresql:///mautrix-discord?host=/run/postgresql";
|
|
};
|
|
bridge = {
|
|
permissions = {
|
|
"@aynish:sealight.xyz" = "admin";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|