about summary refs log tree commit diff
path: root/nix/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts')
-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" ];