aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-03 16:15:19 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-03 16:46:59 +0100
commit7611e4e2ace4355ec4397a675883890927a13c7c (patch)
treecfe69c97539d4aa97a0eb13663998fd9a0632346
parentcf80b4f24e96e7d6e40845ac1fe206fc67a20b12 (diff)
downloadNix-7611e4e2ace4355ec4397a675883890927a13c7c.tar.gz
Nix-7611e4e2ace4355ec4397a675883890927a13c7c.tar.zst
Nix-7611e4e2ace4355ec4397a675883890927a13c7c.zip
Add git daemon service
-rw-r--r--virtual/eldiron.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix
index c8536c6..f70c92c 100644
--- a/virtual/eldiron.nix
+++ b/virtual/eldiron.nix
@@ -12,7 +12,7 @@
12 networking = { 12 networking = {
13 firewall = { 13 firewall = {
14 enable = true; 14 enable = true;
15 allowedTCPPorts = [ 22 80 443 3306 5432 ]; 15 allowedTCPPorts = [ 22 80 443 3306 5432 9418 ];
16 }; 16 };
17 }; 17 };
18 18
@@ -185,6 +185,13 @@
185 source = ldap_authorized_keys; 185 source = ldap_authorized_keys;
186 }; 186 };
187 187
188 services.gitDaemon = {
189 enable = true;
190 user = "gitolite";
191 group = "gitolite";
192 basePath = "${mypkgs.git.web.varDir}/repositories";
193 };
194
188 services.httpd = let 195 services.httpd = let
189 withSSL = domain: { 196 withSSL = domain: {
190 enableSSL = true; 197 enableSSL = true;