alpine: refactor mautrix

This commit is contained in:
Tristan 2024-04-28 11:35:37 +01:00
parent 7ad8d52e78
commit 140a50310e
6 changed files with 66 additions and 58 deletions

View file

@ -0,0 +1,27 @@
{
toAppRegistration = {
port,
id,
as_token,
hs_token,
sender_localpart,
rate_limited ? false,
...
} @ conf:
builtins.toJSON ({
namespaces = {
users = [
{
exclusive = true;
regex = "^@${id}_.*:tristans.cloud$";
}
{
exclusive = true;
regex = "^@${id}bot:tristans.cloud$";
}
];
};
url = "http://localhost:${toString port}";
}
// conf);
}