broke out root_url option for forgejo

This commit is contained in:
John Lancaster
2026-04-04 13:51:40 -05:00
parent c1e00a7c45
commit 1196d69778
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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";