From 7fbbe71a39697810d4dfe35081d8dbf15cf03da2 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 13 Dec 2022 00:48:52 +1000 Subject: [PATCH] maybe rst support scaffolding for mailer --- hosts/profiles/gitea/default.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/profiles/gitea/default.nix b/hosts/profiles/gitea/default.nix index 6c51ce28..6fcfef4d 100644 --- a/hosts/profiles/gitea/default.nix +++ b/hosts/profiles/gitea/default.nix @@ -7,13 +7,6 @@ domain = "git.sealight.xyz"; rootUrl = "https://git.sealight.xyz"; httpPort = 3001; - extraConfig = '' - [markup.restructuredtext] - ENABLED = true - FILE_EXTENSIONS = .rst - RENDER_COMMAND = "timeout 30s pandoc +RTS -M512M -RTS -f rst" - IS_INPUT_FILE = false - ''; database = { type = "postgres"; # passwordFile = "/run/secrets/gitea-dbpass"; # TODO supplied by agenix @@ -26,6 +19,19 @@ repository = { DEFAULT_BRANCH = "main"; }; + "markup.restructuredtext" = { + ENABLED = true; + FILE_EXTENSIONS = ".rst"; + RENDER_COMMAND = "timeout 30s pandoc +RTS -M512M -RTS -f rst"; + IS_INPUT_FILE = false; + }; + # TODO + mailer = { + ENABLED = false; + MAILER_TYPE = "smtp"; + FROM = "ops@sealight.xyz"; + SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail"; + }; }; };