summary refs log tree commit diff
path: root/nixos/modules/services/misc/dendrite.nix
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2022-05-01 15:45:12 +0800
committerNick Cao <nickcao@nichi.co>2022-05-11 18:40:05 +0800
commit82f0b53588967aa392e8a60fd30022ce8981329b (patch)
treea9fe0641779bae60e1897294d8cb6019fa7d87bf /nixos/modules/services/misc/dendrite.nix
parent4f907176e446fd75239917b1e8e5d3fb44beeb3d (diff)
downloadnixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar.gz
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar.bz2
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar.lz
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar.xz
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.tar.zst
nixpkgs-82f0b53588967aa392e8a60fd30022ce8981329b.zip
dendrite: 0.8.1 -> 0.8.4
Diffstat (limited to 'nixos/modules/services/misc/dendrite.nix')
-rw-r--r--nixos/modules/services/misc/dendrite.nix9
1 files changed, 9 insertions, 0 deletions
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";