aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/services
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/services')
-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" ''