fixed brigde stuff; added maubot
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
./clients.nix
|
||||
./mjolnir.nix
|
||||
./coturn.nix
|
||||
./maubot.nix
|
||||
./discord-bridge.nix
|
||||
./whatsapp-bridge.nix
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ];
|
||||
|
||||
@@ -61,4 +61,5 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services.mautrix-discord-registration.serviceConfig.UMask = lib.mkForce "0022";
|
||||
}
|
||||
|
||||
@@ -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 -"
|
||||
];
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
@@ -151,4 +152,10 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.matrix-synapse.serviceConfig.ReadOnlyPaths = [
|
||||
"/var/lib/mautrix-discord"
|
||||
"/var/lib/mautrix-whatsapp"
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user