From df5c9fb1b3601787ca7606673bb8f2979fb81878 Mon Sep 17 00:00:00 2001 From: buffet Date: Thu, 2 May 2024 12:50:47 +0200 Subject: [PATCH] feat(forjego): prepare for enabling mailer --- hosts/ami/forgejo.nix | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/hosts/ami/forgejo.nix b/hosts/ami/forgejo.nix index 6841baf..1ccc47e 100644 --- a/hosts/ami/forgejo.nix +++ b/hosts/ami/forgejo.nix @@ -6,8 +6,21 @@ in { enable = true; package = pkgs.unstable.forgejo; settings = { - DEFAULT = { - APP_NAME = "buffet's kitchen"; + DEFAULT.APP_NAME = "buffet's kitchen"; + admin.SEND_NOTIFICATION_EMAIL_ON_NEW_USER = true; + cron.ENABLED = true; + federation.ENABLED = true; + + mailer = { + ENABLED = false; + PROTOCOL = "sendmail"; + FROM = "buffet's kitchen "; + SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail"; + }; + + repository = { + ENABLE_PUSH_CREATE_USER = true; + ENABLE_PUSH_CREATE_ORG = true; }; server = { @@ -16,9 +29,9 @@ in { HTTP_PORT = port; }; - repository = { - ENABLE_PUSH_CREATE_USER = true; - ENABLE_PUSH_CREATE_ORG = true; + service = { + REGISTER_MANUAL_CONFIRM = true; + ENABLE_NOTIFY_MAIL = true; }; "markup.asciidoc" = { @@ -36,10 +49,6 @@ in { RENDER_COMMAND = ''"timeout 30s ${pkgs.pandoc}/bin/pandoc +RTS -M512M -RTS -f rst"''; IS_INPUT_FILE = false; }; - - service.REGISTER_MANUAL_CONFIRM = true; - cron.ENABLED = true; - federation.ENABLED = true; }; };