mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
matrix
This commit is contained in:
parent
9519d155e5
commit
eaf00456f0
2 changed files with 30 additions and 2 deletions
|
|
@ -56,6 +56,7 @@
|
|||
"modules/services/netbox"
|
||||
"modules/services/system-logging"
|
||||
"modules/services/system-logging/nginx.nix"
|
||||
"modules/services/matrix"
|
||||
"modules/services/flamesites"
|
||||
])
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue