From d819023370fbb182722e9d6819301973b1d42412 Mon Sep 17 00:00:00 2001
From: tv <tv@shackspace.de>
Date: Sat, 18 Jul 2015 12:17:03 +0200
Subject: [PATCH] 1 tv cd: make cgit available on the Internet

---
 1systems/tv/cd.nix | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/1systems/tv/cd.nix b/1systems/tv/cd.nix
index e2ce9bba8..1252f16c4 100644
--- a/1systems/tv/cd.nix
+++ b/1systems/tv/cd.nix
@@ -40,6 +40,14 @@ with lib;
         ];
       };
     }
+    {
+      imports = [
+        ../../3modules/tv/iptables.nix
+        ../../3modules/tv/nginx.nix
+      ];
+      tv.iptables.input-internet-accept-new-tcp = singleton "http";
+      tv.nginx.servers.cgit.server-names = singleton "cgit.cd.viljetic.de";
+    }
     {
       imports = [ ../../3modules/tv/retiolum.nix ];
       tv.retiolum = {