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
+1
View File
@@ -8,6 +8,7 @@
./clients.nix ./clients.nix
./mjolnir.nix ./mjolnir.nix
./coturn.nix ./coturn.nix
./maubot.nix
./discord-bridge.nix ./discord-bridge.nix
./whatsapp-bridge.nix ./whatsapp-bridge.nix
]; ];
+2 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, lib, ... }:
{ {
nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ]; nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ];
@@ -61,4 +61,5 @@
}; };
}; };
}; };
systemd.services.mautrix-discord-registration.serviceConfig.UMask = lib.mkForce "0022";
} }
+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 -"
];
}
+7
View File
@@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
lib,
... ...
}: }:
let let
@@ -151,4 +152,10 @@ in
''; '';
}; };
}; };
systemd.services.matrix-synapse.serviceConfig.ReadOnlyPaths = [
"/var/lib/mautrix-discord"
"/var/lib/mautrix-whatsapp"
];
} }