adding matrix.nix

This commit is contained in:
Chris Cochrun 2024-02-29 21:22:44 -06:00
parent 7e0999b7d9
commit 9440b03610
2 changed files with 34 additions and 0 deletions

33
modules/matrix.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, lib, pkgs, ... }:
with lib;
{
services.matrix-synapse = {
enable = false;
withJemalloc = true;
settings = {
enable_metrics = true;
enable_registration = true;
dynamic_thumbnails = true;
max_upload_size = "100M";
public_baseurl = "https://matrix.cochrun.xyz/";
server_name = "cochrun.xyz";
};
};
services.caddy.virtualHosts = {
"matrix.cochrun.xyz".extraConfig = ''
reverse_proxy localhost:8008
'';
};
services.matrix-conduit = {
enable = true;
settings = {
global = {
allow_registration = true;
server_name = "cochrun.xyz";
};
};
};
}

View file

@ -8,6 +8,7 @@
../../modules/servers.nix ../../modules/servers.nix
../../pkgs/base-packages.nix ../../pkgs/base-packages.nix
../../modules/audiobookshelf.nix ../../modules/audiobookshelf.nix
../../modules/matrix.nix
]; ];
networking.hostName = "dalinar"; # Define your hostname. networking.hostName = "dalinar"; # Define your hostname.