matrix: use shared secret
This commit is contained in:
parent
76ceb26707
commit
d5eb537b5e
4 changed files with 20 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue