From 6038c28b11764c95f4716a02b6f37fce9371e1fa Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sat, 24 Jan 2026 23:36:57 +0100 Subject: git: enable cgit --- config/services/git/cgit.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/services/git/cgit.nix (limited to 'config/services/git/cgit.nix') diff --git a/config/services/git/cgit.nix b/config/services/git/cgit.nix new file mode 100644 index 0000000..e146671 --- /dev/null +++ b/config/services/git/cgit.nix @@ -0,0 +1,18 @@ +{ config, ... }: +{ + services.cgit.default = { + enable = true; + scanPath = "/srv/git"; + gitHttpBackend.enable = false; + nginx = { + virtualHost = "${config.networking.hostName}.aristote.mesh"; + location = "/git/"; + }; + extraConfig = '' + root-title=repositories + root-desc=by Quentin Aristote + ''; + }; + + users.users.cgit.extraGroups = [ "git" ]; +} -- cgit v1.2.3