From 3c9ba1c4773779692e961f99658d94d3fcccdb60 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 31 Jul 2026 23:02:01 +0200 Subject: Added the custom cgit theme --- modules/cgit.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/cgit.nix') diff --git a/modules/cgit.nix b/modules/cgit.nix index 1ea78cc..28b3531 100644 --- a/modules/cgit.nix +++ b/modules/cgit.nix @@ -84,5 +84,11 @@ forceSSL = false; enableACME = false; listen = [ { addr = "127.0.0.1"; port = 8086; } ]; + # Overrides the module's own `= /cgit.css` location (set with mkDefault, + # so any concrete value here wins) to serve cgit.css below instead of + # cgit's stock stylesheet - same variable-driven light/dark technique as + # ~/workspace/homepage's stylesheet, switching automatically via + # prefers-color-scheme with no JS or toggle. + locations."= /cgit.css".alias = "${./cgit.css}"; }; } -- cgit v1.3.1