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; };