From b1d21ea2b943fc67e821dc310a211bd35d6635e6 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Mon, 22 Jul 2024 02:26:05 -0400 Subject: [PATCH] Configure forgejo --- modules/forgejo.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/modules/forgejo.nix b/modules/forgejo.nix index 36d848e..7cede86 100644 --- a/modules/forgejo.nix +++ b/modules/forgejo.nix @@ -19,32 +19,42 @@ in { database.user = cfg.user; settings = { + DEFAULT.APP_NAME = "Code by toki!"; + server = { DOMAIN = "git.tokinanpa.dev"; ROOT_URL = "https://${srv.DOMAIN}/"; }; - service = { - DISABLE_REGISTRATION = true; - }; + service.DISABLE_REGISTRATION = true; repository = { - DEFAULT_REPO_UNITS = "repo.code,repo.releases,repo.issues"; - DISABLE_STARS = true; + DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls"; ENABLE_PUSH_CREATE_USER = true; DEFAULT_PUSH_CREATE_PRIVATE = false; - PREFERRED_LICENSES = "MIT"; + PREFERRED_LICENSES = "MIT,GPL-3.0-or-later"; + }; + mirror.DEFAULT_INTERVAL = "1h"; + + indexer = { + REPO_INDEXER_ENABLED = true; + REPO_INDEXER_EXCLUDE = "**.pdf, **.png, **.jpg, **.jpeg, **.svg, **.web, **.gpg, **.age"; }; ui = { DEFAULT_THEME = "forgejo-dark"; - DEFAULT_SHOW_FULL_NAME = true; - + GRAPH_MAX_COMMIT_NUM = 250; }; + "ui.meta" = { + AUTHOR = "Kiana Sheibani"; + DESCRIPTION = "Code by toki! Powered by Forgejo"; + KEYWORDS = "git,forge,forgejo,toki,tokinanpa"; + }; + "service.explore".DISABLE_USERS_PAGE = true; - mirror.DEFAULT_INTERVAL = "1h"; + federation.ENABLED = true; }; };