From 82f0b53588967aa392e8a60fd30022ce8981329b Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 1 May 2022 15:45:12 +0800 Subject: dendrite: 0.8.1 -> 0.8.4 --- nixos/modules/services/misc/dendrite.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixos/modules/services/misc/dendrite.nix') diff --git a/nixos/modules/services/misc/dendrite.nix b/nixos/modules/services/misc/dendrite.nix index 35bec40926e..ac5df9951b3 100644 --- a/nixos/modules/services/misc/dendrite.nix +++ b/nixos/modules/services/misc/dendrite.nix @@ -222,6 +222,13 @@ in for available options with which to populate settings. ''; }; + openRegistration = lib.mkOption { + type = lib.types.bool; + default = false; + description = '' + Allow open registration without secondary verification (reCAPTCHA). + ''; + }; }; config = lib.mkIf cfg.enable { @@ -263,6 +270,8 @@ in "--https-bind-address :${builtins.toString cfg.httpsPort}" "--tls-cert ${cfg.tlsCert}" "--tls-key ${cfg.tlsKey}" + ] ++ lib.optionals cfg.openRegistration [ + "--really-enable-open-registration" ]); ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; Restart = "on-failure"; -- cgit 1.4.1