summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-05-20 03:14:11 +0300
committertzlil <tzlils@protonmail.com>2023-05-20 03:14:11 +0300
commit2e361cef77f8696870d0b204b1ce95868133c29a (patch)
treeb4bd4e7117eda5011feff0d1f9a232821799ddac /hosts
parentfb016bb77ee916096b890c0168880ebeaa940c90 (diff)
serve cgit css
Diffstat (limited to 'hosts')
-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 " " [