]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add git daemon service
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 3 Jan 2019 15:15:19 +0000 (16:15 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 3 Jan 2019 15:46:59 +0000 (16:46 +0100)
virtual/eldiron.nix

index c8536c6f044b5a5b88751498bc2cfe971fa6c2ef..f70c92c8c6bd61886884f7fe48755cc204ae79ae 100644 (file)
@@ -12,7 +12,7 @@
     networking = {
       firewall = {
         enable = true;
-        allowedTCPPorts = [ 22 80 443 3306 5432 ];
+        allowedTCPPorts = [ 22 80 443 3306 5432 9418 ];
       };
     };
 
       source = ldap_authorized_keys;
     };
 
+    services.gitDaemon = {
+      enable = true;
+      user = "gitolite";
+      group = "gitolite";
+      basePath = "${mypkgs.git.web.varDir}/repositories";
+    };
+
     services.httpd = let
       withSSL = domain: {
         enableSSL = true;