hippocampus: fix: mautrix-discord misc

This commit is contained in:
2026-03-23 21:14:39 -04:00
parent d7b3c180df
commit 6d2cc86b65
2 changed files with 8 additions and 6 deletions

View File

@@ -39,6 +39,7 @@
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"nodejs-14.21.3" "nodejs-14.21.3"
"openssl-1.1.1w" "openssl-1.1.1w"
"olm-3.2.16"
]; ];
nix.gc = { nix.gc = {
automatic = true; automatic = true;

View File

@@ -9,11 +9,12 @@ in {
ensureDatabases = [ ensureDatabases = [
mautrix-discord-user mautrix-discord-user
]; ];
ensureUsers = { ensureUsers = [
"${mautrix-discord-user}" = { {
name = "${mautrix-discord-user}";
ensureDBOwnership = true; ensureDBOwnership = true;
}; }
}; ];
}; };
services.mautrix-discord = { services.mautrix-discord = {
enable = true; enable = true;
@@ -367,7 +368,7 @@ in {
}; };
appservice = { appservice = {
# The address that the homeserver can use to connect to this appservice. # The address that the homeserver can use to connect to this appservice.
address = "http://localhost:${config.services.mautrix-discord.settings.appservice.port}"; address = "http://localhost:${toString config.services.mautrix-discord.settings.appservice.port}";
# The hostname and port where this appservice should listen. # The hostname and port where this appservice should listen.
hostname = "0.0.0.0"; hostname = "0.0.0.0";
@@ -430,7 +431,7 @@ in {
services.caddy.virtualHosts = { services.caddy.virtualHosts = {
"${config.services.mautrix-discord.settings.bridge.direct_media.server_name}" = { "${config.services.mautrix-discord.settings.bridge.direct_media.server_name}" = {
extraConfig = '' extraConfig = ''
reverse_proxy localhost:${config.services.mautrix-discord.settings.appservice.port} reverse_proxy localhost:${toString config.services.mautrix-discord.settings.appservice.port}
''; '';
}; };
}; };