2023-10-06 18:05:38 +02:00
|
|
|
{ config, ... }:
|
2022-06-22 20:09:30 +02:00
|
|
|
{
|
|
|
|
services.mx-puppet-discord = {
|
2023-07-12 01:54:07 +02:00
|
|
|
enable = false;
|
2022-06-22 20:09:30 +02:00
|
|
|
serviceDependencies = [
|
|
|
|
"matrix-synapse.service"
|
|
|
|
"postgresql.service"
|
|
|
|
];
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
|
|
|
bridge = {
|
|
|
|
bindAddress = "localhost";
|
|
|
|
domain = "nani.wtf";
|
|
|
|
# TODO: connect via localhost
|
|
|
|
homeserverUrl = "https://matrix.nani.wtf";
|
|
|
|
|
2023-10-06 18:05:38 +02:00
|
|
|
port = 8434;
|
2022-06-22 20:09:30 +02:00
|
|
|
enableGroupSync = true;
|
|
|
|
};
|
|
|
|
|
2023-10-06 18:05:38 +02:00
|
|
|
database.connString = "postgres://mx-puppet-discord:@localhost:${toString config.services.postgresql.port}/mx-puppet-discord?sslmode=disable";
|
2022-06-22 20:09:30 +02:00
|
|
|
|
|
|
|
namePatterns = {
|
|
|
|
room = ":name";
|
|
|
|
user = ":name";
|
|
|
|
userOverride = ":displayname";
|
|
|
|
group = ":name";
|
|
|
|
};
|
|
|
|
|
|
|
|
presence = {
|
|
|
|
enabled = true;
|
|
|
|
interval = 500;
|
|
|
|
};
|
|
|
|
|
|
|
|
logging = {
|
|
|
|
console = "info";
|
|
|
|
lineDateFormat = "MMM-D HH:mm:ss.SSS";
|
|
|
|
};
|
|
|
|
|
|
|
|
provisioning.whitelist = [ "@h7x4:nani\\.wtf" ];
|
|
|
|
relay.whitelist = [ "@h7x4:nani\\.wtf" ];
|
|
|
|
selfService.whitelist = [ "@h7x4:nani\\.wtf" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|