From a9e779022893241e9c6279bfe9b8df057d199c05 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Tue, 3 Mar 2026 15:33:36 -0800 Subject: cgit: remove favicon and logo --- modules/nixos/services/web/cgit/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/nixos/services') 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" '' -- cgit v1.2.3