summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/vps/git.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/hosts/vps/git.nix b/hosts/vps/git.nix
index 8408b53..6882e69 100644
--- a/hosts/vps/git.nix
+++ b/hosts/vps/git.nix
@@ -42,7 +42,10 @@
               file_server
             }
             handle /cgit.css {
-              root * ${pkgs.cgit}/cgit
+              try_files ${pkgs.fetchurl {
+                url = "https://jeremias.stotter.eu/cgi-bin/cgit.cgi/cgit-dark/plain/cgit.css";
+                sha256 = "sha256-wqszujnWV5PRh3L23L1BFj/PKUElpyu1KhjqrHS8lCw=";
+              }} /
               file_server
             }
             handle /favicon.ico {
@@ -54,11 +57,7 @@
                 transport fastcgi {
                   env SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi
                   env CGIT_CONFIG ${pkgs.writeText "cgitrc" (pkgs.lib.generators.toKeyValue {} {
-            # css = "/cgit/cgit.css";
-            css = pkgs.fetchurl {
-              url = "https://jeremias.stotter.eu/cgi-bin/cgit.cgi/cgit-dark/plain/cgit.css";
-              sha256 = "sha256-wqszujnWV5PRh3L23L1BFj/PKUElpyu1KhjqrHS8lCw=";
-            };
+            css = "/cgit/cgit.css";
             logo = "/cgit/cgit.png";
             favicon = "/favicon.ico";
             clone-url = pkgs.lib.concatStringsSep " " [