nixos-config/config/services/mautrix-slack.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

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 = {
allow = true;
default = true;
appservice = true;
};
};
};
sops.secrets."services/mautrix/shared_secret" = {};
services.postgresql.ensureDatabases = [
"mautrix_slack"
];
}