fixed brigde stuff; added maubot

This commit is contained in:
2026-05-07 15:38:05 +02:00
parent 2740d04253
commit dcf492209b
4 changed files with 56 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
{ config, ... }:
{
services = {
maubot = {
enable = true;
plugins = [ config.services.maubot.package.plugins.weather ];
settings = {
database = "postgresql:///maubot?host=/run/postgresql";
homeservers = {
"cyperpunk.de" = {
url = "https://matrix.cyperpunk.de";
};
};
admins = {
root = "";
dergrumpf = "$2b$12$62kYoqsSloK3hco/N/EZUupD/JOjTMMVhUf064cqveBJYXGJJF8Hi";
};
plugin_directories = {
upload = "/var/lib/maubot/plugins";
load = [ "/var/lib/maubot/plugins" ];
trash = "/var/lib/maubot/trash";
};
};
};
postgresql = {
ensureUsers = [
{
name = "maubot";
ensureDBOwnership = true;
}
];
ensureDatabases = [ "maubot" ];
};
nginx.virtualHosts."cyperpunk.de".locations."/_matrix/maubot/" = {
proxyPass = "http://127.0.0.1:29316";
proxyWebsockets = true;
};
};
systemd.tmpfiles.rules = [
"d /var/lib/maubot/plugins 0750 maubot maubot -"
"d /var/lib/maubot/trash 0750 maubot maubot -"
];
}