From ba3dfa1528fa94959fdbf3fa8207a8c61a21e162 Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 12 Aug 2024 16:06:40 +0200 Subject: [PATCH] fixed missing option --- features/services/forgejo.nix | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/features/services/forgejo.nix b/features/services/forgejo.nix index d9b248d..4db6a8e 100644 --- a/features/services/forgejo.nix +++ b/features/services/forgejo.nix @@ -1,7 +1,7 @@ { config, ... }: { - sops.secrets.smtp_address = {}; - sops.secrets.smtp_password = {}; + sops.secrets.smtp_address = { }; + sops.secrets.smtp_password = { }; services.forgejo = { enable = true; @@ -10,22 +10,21 @@ database = { type = "postgres"; }; - server = { - DOMAIN = "git.hypervirtual.world"; - ROOT_URL = "https://hypervirtual.world"; - HTTP_PORT = 3000; - }; - - actions = { - ENABLED = true; - DEFAULT_ACTIONS_URL = "github"; - }; - - mailer = { + settings = { + server = { + DOMAIN = "git.hypervirtual.world"; + ROOT_URL = "https://hypervirtual.world"; + HTTP_PORT = 3000; + }; + actions = { + ENABLED = true; + DEFAULT_ACTIONS_URL = "github"; + }; + mailer = { ENABLED = true; SMTP_ADDR = config.sops.secrets.smtp_address; }; - + }; mailerPasswordFile = config.sops.secrets.smtp_password.path; }; }