summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-05-20 02:13:47 +0300
committertzlil <tzlils@protonmail.com>2023-05-20 02:13:47 +0300
commit7572a1ed3266a3b1637e41b5abc5a5eb07cfc259 (patch)
tree62ffc6d4ecb0ed75f0d9576f9bf8a75232a99213 /hosts
parent9c459f48dbbccb583a4671be112d6c692a2cfd30 (diff)
add cgit dark mode
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vps/git.nix6
1 files changed, 5 insertions, 1 deletions
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";
           })}
                 }
               }