about summary refs log tree commit diff
path: root/nix/hosts/corrino/www
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-06-09 00:25:38 +0200
committerEmile <git@emile.space>2024-06-09 00:25:38 +0200
commit5a0e9bc57f578da2dd8578220acfd18c7484ec00 (patch)
treef11049d4a2f065b5dee1ccf44498797a06b58c85 /nix/hosts/corrino/www
parentdd48fc33f55f56590c627786d5ed07ad24474c0d (diff)
git daemon
Diffstat (limited to 'nix/hosts/corrino/www')
-rw-r--r--nix/hosts/corrino/www/cgit.emile.space.nix17
1 files changed, 17 insertions, 0 deletions
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" ];