From 1196d69778aed6cbe05021144fda408b00236544 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 4 Apr 2026 13:51:40 -0500 Subject: [PATCH] broke out root_url option for forgejo --- modules/features/forgejo.nix | 5 ++++- modules/hosts/soteria/soteria.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/features/forgejo.nix b/modules/features/forgejo.nix index eded17e..066b5a0 100644 --- a/modules/features/forgejo.nix +++ b/modules/features/forgejo.nix @@ -7,6 +7,9 @@ { options.forgejo = { enable = lib.mkEnableOption "Enable Forgejo backed with PostgreSQL"; + root_url = lib.mkOption { + type = lib.types.str; + }; port = lib.mkOption { type = lib.types.port; @@ -52,7 +55,7 @@ { HTTP_PORT = cfg.port; DISABLE_SSH = true; - ROOT_URL = "https://forgejo.john-stream.com"; + ROOT_URL = cfg.root_url; } (lib.mkIf cfg.https { PROTOCOL = "https"; diff --git a/modules/hosts/soteria/soteria.nix b/modules/hosts/soteria/soteria.nix index 8f34eb4..351c77e 100644 --- a/modules/hosts/soteria/soteria.nix +++ b/modules/hosts/soteria/soteria.nix @@ -52,6 +52,7 @@ in }; forgejo = { enable = true; + root_url = "https://forgejo.john-stream.com"; https = true; port = 443; };