aboutsummaryrefslogtreecommitdiff
path: root/modules/cgit.nix
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2026-07-31 23:02:01 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2026-07-31 23:02:01 +0200
commit3c9ba1c4773779692e961f99658d94d3fcccdb60 (patch)
tree36618f9b7f5f24f354aa30a2d292efff9066a9ef /modules/cgit.nix
parent6ff86c7f82e611bcaab6ca7880469a6728ca7bd6 (diff)
Added the custom cgit theme
Diffstat (limited to 'modules/cgit.nix')
-rw-r--r--modules/cgit.nix6
1 files changed, 6 insertions, 0 deletions
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}";
};
}