about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-09 18:31:24 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-09 18:32:32 -0700
commitc946484d822137eedbf23d5e9427d672d265e8dd (patch)
tree6dfee3b45c60c41f081fd6aa9b76474dca138208 /modules/services
parentfeat(nix): update nix to version 22.05 (diff)
downloadworld-c946484d822137eedbf23d5e9427d672d265e8dd.tar.gz
feat(cgit): adjust configuration
- list up to 150 repositories per page
- limit stats to a year
- snapshots are in tar.gz format

Change-Id: Ifc52d47893737862d89d24b797ec28f32e5076e9
Reviewed-on: https://cl.fcuny.net/c/world/+/366
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/cgit/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix
index 484a708..84f8e01 100644
--- a/modules/services/cgit/default.nix
+++ b/modules/services/cgit/default.nix
@@ -9,6 +9,15 @@ let
     enable-http-clone=0
     clone-url=https://cl.fcuny.net/$CGIT_REPO_URL
 
+    # I've fewer than 150 repos, all should be able to be listed on
+    # the main page
+    max-repo-count=150
+
+    # limit to year for the stats
+    max-stats=year
+
+    snapshots=tar.gz
+
     source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py
     about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh