This commit is contained in:
TheWanderingCrow 2025-09-08 11:22:30 -04:00
parent 9519d155e5
commit eaf00456f0
2 changed files with 30 additions and 2 deletions

View file

@ -56,6 +56,7 @@
"modules/services/netbox"
"modules/services/system-logging"
"modules/services/system-logging/nginx.nix"
"modules/services/matrix"
"modules/services/flamesites"
])
];

View file

@ -1,5 +1,32 @@
{pkgs, ...}: {
services.matrix-tuwunel = {
{
config,
inputs,
pkgs,
...
}: {
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/matrix/tuwunel.nix"
];
sops.secrets."matrix/registration_token" = {};
services.matrix.tuwunel = {
enable = true;
package = pkgs.unstable.matrix-tuwunel;
stateDirectory = "tuwunel";
settings = {
global = {
server_name = "psychal.link";
new_user_displayname_suffix = "";
unix_socket_path = "/run/tuwunel/tuwunel.sock";
unix_socket_perms = 660;
allow_registration = false;
registration_token_file = config.sops.secrets."matrix/registration_token".path;
allow_encryption = true;
allow_federation = true;
require_auth_for_profile_requests = true; # no user enumeration
trusted_servers = ["matrix.org"];
};
};
};
}