init matrix config

This commit is contained in:
twoneis 2025-02-07 21:16:16 +01:00
parent 256ff49887
commit 9634b57b86
4 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ config, lib, ... }: let
inherit (config) conf;
inherit (lib) mkIf;
in mkIf conf.matrix.enable {
services.nginx.virtualHosts = {
"matrix.twoneis.site" = {
serverName = "matrix.twoneis.site";
forceSSL = false;
locations = {
"/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:6167";
};
};
};
};
services.conduwuit = {
enable = true;
settings.global = {
server_name = "matrix.twoneis.site";
};
};
}