about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/cgit/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix
index 0ac6a58..a310e14 100644
--- a/modules/services/cgit/default.nix
+++ b/modules/services/cgit/default.nix
@@ -28,8 +28,8 @@ let
     # don't index or follow
     robots="noindex, nofollow"
 
-    scan-path=/var/lib/gerrit/git
     project-list=/var/lib/cgit/cache/projects.list
+    scan-path=/var/lib/gerrit/git
   '';
 in {
   options.my.services.cgit = with lib; {
@@ -59,7 +59,7 @@ in {
           # as per https://gerrit-review.googlesource.com/Documentation/rest-api.html#output we need to remove `)]}' from the response
           repos=$(${pkgs.curl}/bin/curl -s -H "Content-Type: application/json" "https://cl.fcuny.net/projects/?state=ACTIVE"|sed "s/^)]}'//"|${pkgs.jq}/bin/jq -r 'to_entries | .[] | .value | .id')
           for repo in ''${repos}; do
-            echo "/var/lib/gerrit/git/''${repo}.git" >> $tmplist
+            echo "''${repo}.git" >> $tmplist
           done
           mv $tmplist /var/lib/cgit/cache/projects.list
         '';