git-server: use personal legit-web fork
Alan Pearce alan@alanpearce.eu
Sat, 29 Mar 2025 15:49:01 +0100
1 files changed, 13 insertions(+), 8 deletions(-)
M system/settings/services/git-server.nix → system/settings/services/git-server.nix
@@ -28,6 +28,7 @@ nixfiles = [ "sourcehut" "codeberg" ]; searchix = [ "sourcehut" "codeberg" ]; website = [ "sourcehut" ]; homestead = [ "sourcehut" ]; + legit = [ "github" ]; gomponents = [ "sourcehut" "github" ]; nix-packages = [ "sourcehut" "github" ]; zola-bearblog = [ "sourcehut" "codeberg" ]; @@ -66,6 +67,13 @@ mkMirrorWants = repo: map (target: "mirror-to-${target}@${repo}.path"); in { + disabledModules = [ + "services/networking/legit.nix" + ]; + imports = [ + <personal/modules/nixos/legit.nix> + ]; + services.fcgiwrap.instances.gitolite = { process = { user = "gitolite"; @@ -93,18 +101,15 @@ ''; }; services.legit = { enable = true; + package = pkgs.personal.legit-web; group = "gitolite"; settings = { server.name = "legit.alanpearce.eu"; - dirs = { - templates = "/srv/http/legit/src/templates"; - }; repo = { - scanPath = "/srv/http/legit/repos"; - readme = [ - "readme" - "readme.md" - "README.md" + scanPath = repos; + checkGitDaemonExportOk = true; + ignore = [ + "gitolite-admin.git" ]; }; };