diff --git a/hosts/suwako/services/gitea.nix b/hosts/suwako/services/gitea.nix index e8016b3..afa4577 100644 --- a/hosts/suwako/services/gitea.nix +++ b/hosts/suwako/services/gitea.nix @@ -1,7 +1,6 @@ { - config, - pkgs, conf, + lib, ... }: { @@ -36,6 +35,18 @@ USER = FROM; REGISTER_MAIL_CONFIRM = true; }; + service = { + ENABLE_CAPTCHA = true; + EMAIL_DOMAIN_ALLOWLIST = lib.strings.concatStringsSep "," [ + "gmail.com" + "outlook.com" + "proton.me" + "protonmail.com" + conf.network.addresses.domain.natto + conf.network.addresses.domain.amneesh + conf.network.addresses.domain.chutiya + ]; + }; oauth2_client.REGISTER_MAIL_CONFIRM = true; actions.ENABLED = false; };