From 7572a1ed3266a3b1637e41b5abc5a5eb07cfc259 Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 20 May 2023 02:13:47 +0300 Subject: add cgit dark mode --- hosts/vps/git.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hosts/vps') diff --git a/hosts/vps/git.nix b/hosts/vps/git.nix index e334aeb..d991fda 100644 --- a/hosts/vps/git.nix +++ b/hosts/vps/git.nix @@ -54,7 +54,10 @@ 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 = "/cgit/cgit.css"; + css = pkgs.fetchurl { + url = "https://jeremias.stotter.eu/cgi-bin/cgit.cgi/cgit-dark/plain/cgit.css"; + }; logo = "/cgit/cgit.png"; favicon = "/favicon.ico"; clone-url = pkgs.lib.concatStringsSep " " [ @@ -71,6 +74,7 @@ source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; logo-link = "/"; virtual-root = "/cgit"; + readme=":README.md"; })} } } -- cgit 1.4.1