From 6e986a6e342b67ee39bd0cb75e5018e244abfb20 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Wed, 23 Apr 2025 16:05:09 -0700 Subject: Try to set up cgit webui This is not quite working yet but I'm getting close --- configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configuration.nix b/configuration.nix index 3e21261..a37e896 100644 --- a/configuration.nix +++ b/configuration.nix @@ -237,6 +237,24 @@ }; }; + services.nginx.enable = true; + + services.cgit.nvandoorn = { + enable = true; + scanPath = "/srv/git"; + nginx = { + location = "git"; + virtualHost = "vandoorn-server.local"; + }; + settings = { + root-title = "nvd-git"; + root-desc = "Nicholas Van Doorn's personal Git server"; + source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; + }; + extraConfig = "enable-http-clone=1"; + }; + + services.tailscale.enable = true; programs.msmtp = { -- cgit v1.2.3