feat(gitea): disable mailing and test indexing

This commit is contained in:
2025-09-15 12:20:20 +02:00
parent 13b18e64a0
commit fb4c9dbba2

View File

@@ -3,11 +3,13 @@
config, config,
lib, lib,
... ...
}: let }:
let
unit = "gitea"; unit = "gitea";
srv = config.server; srv = config.server;
cfg = config.server.${unit}; cfg = config.server.${unit};
in { in
{
options.server.${unit} = { options.server.${unit} = {
enable = lib.mkEnableOption { enable = lib.mkEnableOption {
description = "Enable ${unit}"; description = "Enable ${unit}";
@@ -65,7 +67,7 @@ in {
MODE = "console"; MODE = "console";
}; };
mailer = { mailer = {
ENABLED = true; ENABLED = false;
MAILER_TYPE = "sendmail"; MAILER_TYPE = "sendmail";
FROM = "noreply+adam@cnst.dev"; FROM = "noreply+adam@cnst.dev";
SENDMAIL_PATH = "/run/wrappers/bin/sendmail"; SENDMAIL_PATH = "/run/wrappers/bin/sendmail";
@@ -78,6 +80,9 @@ in {
DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls"; DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls";
DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true; DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true;
}; };
indexer = {
REPO_INDEXER_ENABLED = true;
};
server = { server = {
DOMAIN = cfg.url; DOMAIN = cfg.url;
LANDING_PAGE = "explore"; LANDING_PAGE = "explore";