summary refs log tree commit diff
path: root/services/cgit.nix
diff options
context:
space:
mode:
Diffstat (limited to 'services/cgit.nix')
-rw-r--r--services/cgit.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/cgit.nix b/services/cgit.nix
index d8493f4..1f7b637 100644
--- a/services/cgit.nix
+++ b/services/cgit.nix
@@ -28,6 +28,15 @@ let
       lighttpd zstd
       python311 python311Packages.pygments
     ] ++ [ cgit ];
+
+    # create cache folder, otherwise
+    # the cache is not used.
+    # NOTE: `mkdir` here can only create dirs relative
+    # to the current folder, but it will be linked
+    # to `/` later anyway.
+    extraCommands = ''
+      mkdir -p ./var/cache/cgit
+    '';
   };
 
 in