aboutsummaryrefslogtreecommitdiff
path: root/modules/cgit.nix
diff options
context:
space:
mode:
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}";
};
}