From 5a0e9bc57f578da2dd8578220acfd18c7484ec00 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 9 Jun 2024 00:25:38 +0200 Subject: git daemon --- nix/hosts/corrino/www/cgit.emile.space.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nix/hosts/corrino/www/cgit.emile.space.nix b/nix/hosts/corrino/www/cgit.emile.space.nix index 55c86b3..8cf0822 100644 --- a/nix/hosts/corrino/www/cgit.emile.space.nix +++ b/nix/hosts/corrino/www/cgit.emile.space.nix @@ -535,6 +535,23 @@ $RC{GIT_CONFIG_KEYS} = '.*'; ''; }; + + # exposing stuff + gitDaemon = { + enable = true; + + user = "git"; + group = "git"; + + repositories = []; # use all repos under basePath + exportAll = true; + basePath = "/var/lib/git/repositories"; + + listenAddress = "git.emile.space"; + port = 9418; + + options = "--timeout=30"; # extra Config + }; }; users.extraUsers.nginx.extraGroups = [ "git" ]; -- cgit 1.4.1