aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/services/web
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2026-03-03 15:33:36 -0800
committerCaroline Larimore <caroline@larimo.re>2026-03-03 15:33:36 -0800
commita9e779022893241e9c6279bfe9b8df057d199c05 (patch)
tree6ac4d5ebf0af04d132bc74b7578a6e80fba6e4cf /modules/nixos/services/web
parent9fb2d424edfe7c9bc46a22d70026888fb8ed26f9 (diff)
cgit: remove favicon and logo
Diffstat (limited to 'modules/nixos/services/web')
-rw-r--r--modules/nixos/services/web/cgit/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/nixos/services/web/cgit/default.nix b/modules/nixos/services/web/cgit/default.nix
index d1a7d85..2f5dd34 100644
--- a/modules/nixos/services/web/cgit/default.nix
+++ b/modules/nixos/services/web/cgit/default.nix
@@ -3,6 +3,13 @@
with lib; with lib.${namespace}; let
cfg = config.${namespace}.services.web.cgit;
impermanence = config.${namespace}.system.impermanence;
+ package = (pkgs.cgit.overrideAttrs (previousAttrs: {
+ postInstall = (previousAttrs.postInstall or "") + ''
+ rm $out/cgit/favicon.ico # automatically fetched by browsers
+ # install -m 0644 $\{./favicon.ico} $out/cgit/favicon.ico
+ # install -m 0644 $\{./icon.png} $out/cgit/cgit.png
+ '';
+ }));
in {
options.${namespace}.services.web.cgit = with types; {
enable = mkEnableOption "git.cxl.sh webserver";
@@ -28,6 +35,8 @@ in {
services.cgit = {
"public" = {
enable = true;
+ package = package;
+
scanPath = cfg.path;
nginx.virtualHost = cfg.virtualHost;
@@ -40,6 +49,9 @@ in {
enable-git-config = true;
enable-index-owner = true;
+ favicon = "";
+ logo = "";
+
root-title = cfg.virtualHost;
root-desc = "caroline's git mirror :3 (see about tab)";
root-readme = "${pkgs.writeText "cgit-readme.txt" ''