about summary refs log tree commit diff
path: root/nixos/cobalt/services/git-daemon.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/cobalt/services/git-daemon.nix')
-rw-r--r--nixos/cobalt/services/git-daemon.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/cobalt/services/git-daemon.nix b/nixos/cobalt/services/git-daemon.nix
new file mode 100644
index 0000000..21e957e
--- /dev/null
+++ b/nixos/cobalt/services/git-daemon.nix
@@ -0,0 +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
+  ];
+}