From 4d21eda97f317c8ac66693cef1794a8f47f3df96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 21 Feb 2023 16:29:27 +0200 Subject: [PATCH] wip gitea mailer --- configuration.nix | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/configuration.nix b/configuration.nix index f2742e2..39a12a6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -243,18 +243,32 @@ in { mirror.ENABLED = false; other.SHOW_FOOTER_VERSION = false; packages.ENABLED = false; - repository.DEFAULT_REPO_UNITS = "repo.code,repo.releases"; - repository.DISABLE_MIGRATIONS = true; - repository.DISABLE_STARS = true; - repository.ENABLE_PUSH_CREATE_USER = true; + repository = { + DEFAULT_REPO_UNITS = "repo.code,repo.releases"; + DISABLE_MIGRATIONS = true; + DISABLE_STARS = true; + ENABLE_PUSH_CREATE_USER = true; + }; security.LOGIN_REMEMBER_DAYS = 30; - server.ENABLE_GZIP = true; - server.LANDING_PAGE = "/motiejus"; - service.DISABLE_REGISTRATION = true; - service.ENABLE_TIMETRACKING = false; - service.ENABLE_USER_HEATMAP = false; - service.SHOW_MILESTONES_DASHBOARD_PAGE = false; - session.COOKIE_SECURE = true; + server = { + ENABLE_GZIP = true; + LANDING_PAGE = "/motiejus"; + }; + service = { + DISABLE_REGISTRATION = true; + ENABLE_TIMETRACKING = false; + ENABLE_USER_HEATMAP = false; + SHOW_MILESTONES_DASHBOARD_PAGE = false; + COOKIE_SECURE = true; + }; + # TODO: does not work with 1.7.4, getting error + # in the UI when testing the email sending workflow. + #mailer = { + # ENABLED = true; + # MAILER_TYPE = "sendmail"; + # FROM = ""; + # SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail"; + #}; "service.explore".DISABLE_USERS_PAGE = true; }; };