From 2e361cef77f8696870d0b204b1ce95868133c29a Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 20 May 2023 03:14:11 +0300 Subject: serve cgit css --- hosts/vps/git.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'hosts/vps') 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 " " [ -- cgit 1.4.1