matrix: use shared secret

This commit is contained in:
Antoine Martin 2021-02-02 01:20:31 +01:00
parent 76ceb26707
commit d5eb537b5e
4 changed files with 20 additions and 3 deletions

View file

@ -21,6 +21,13 @@ let
in {
options.my.services.matrix = {
enable = lib.mkEnableOption "Matrix Synapse";
registration_shared_secret = lib.mkOption {
type = types.str;
default = null;
example = "deadbeef";
description = "Shared secret to register users";
};
};
config = lib.mkIf cfg.enable {
@ -38,6 +45,8 @@ in {
server_name = domain;
public_baseurl = "https://matrix.${domain}";
registration_shared_secret = cfg.registration_shared_secret;
listeners = [
# Federation
{