about summary refs log tree commit diff
path: root/colmena/cobalt/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-05 02:57:56 +0900
committersefidel <contact@sefidel.net>2023-02-05 03:02:51 +0900
commitb946cb6694b35fb85697852117096ee85e6cb34a (patch)
tree1800dd57c104624f151af9d896a7dbc71275c5d9 /colmena/cobalt/services
parent21cb245fcc546306e47f36f84c8788614a272bf4 (diff)
downloadnixrc-b946cb6694b35fb85697852117096ee85e6cb34a.tar.gz
nixrc-b946cb6694b35fb85697852117096ee85e6cb34a.zip
feat(colmena): add git-daemon
Diffstat (limited to 'colmena/cobalt/services')
-rw-r--r--colmena/cobalt/services/git-daemon.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/colmena/cobalt/services/git-daemon.nix b/colmena/cobalt/services/git-daemon.nix
index 4ba73cf..f0dbad6 100644
--- a/colmena/cobalt/services/git-daemon.nix
+++ b/colmena/cobalt/services/git-daemon.nix
@@ -1,6 +1,15 @@
 {
   services.gitDaemon = {
       enable = true;
+      createUserAndGroup = false;
       basePath = "/var/lib/gitolite/repositories";
   };
+
+  networking.firewall.allowedTCPPorts = [ 9418 ];
+
+  disabledModules = [ "services/networking/git-daemon.nix" ];
+
+  imports = [
+    ../modules/git-daemon.nix
+  ];
 }