2024-09-23 18:26:18 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
../../modules/matrix/mautrix-slack.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.mautrix-slack = {
|
|
|
|
enable = true;
|
|
|
|
environmentFile = config.sops.secrets."services/mautrix/shared_secret".path;
|
|
|
|
settings = {
|
|
|
|
bridge = {
|
|
|
|
permissions = {
|
|
|
|
"*" = "relay";
|
|
|
|
"@miifox:chir.rs" = "user";
|
|
|
|
"@lotte:chir.rs" = "admin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
database = {
|
|
|
|
type = "postgres";
|
|
|
|
uri = "postgres:///mautrix_slack?sslmode=disable&host=/run/postgresql";
|
|
|
|
};
|
|
|
|
homeserver = {
|
|
|
|
address = "https://matrix.chir.rs";
|
|
|
|
domain = "chir.rs";
|
|
|
|
async_media = true;
|
|
|
|
};
|
|
|
|
appservice = {
|
|
|
|
ephemeral_events = true;
|
|
|
|
async_transactions = true;
|
|
|
|
};
|
|
|
|
backfill = {
|
|
|
|
enabled = true;
|
|
|
|
queue.enabled = true;
|
|
|
|
};
|
|
|
|
encryption = {
|
2024-10-27 05:50:41 +00:00
|
|
|
allow = true;
|
2024-09-24 11:34:25 +00:00
|
|
|
default = false;
|
|
|
|
appservice = false;
|
2024-09-23 18:26:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sops.secrets."services/mautrix/shared_secret" = {};
|
|
|
|
services.postgresql.ensureDatabases = [
|
|
|
|
"mautrix_slack"
|
|
|
|
];
|
|
|
|
}
|