all repos — nixfiles @ ed21b03a29e77130dc00b782c77d9c2c0fd87b8c

System and user configuration, managed by nix and home-manager

git-server: use personal legit-web fork
Alan Pearce alan@alanpearce.eu
Sat, 29 Mar 2025 15:49:01 +0100
commit

ed21b03a29e77130dc00b782c77d9c2c0fd87b8c

parent

d768746f195a6283672577e3666b770d45b9c733

1 files changed, 13 insertions(+), 8 deletions(-)

jump to
M system/settings/services/git-server.nixsystem/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"
         ];
       };
     };