From da797530dea52ee9b77c5a4225c10d940fb276e4 Mon Sep 17 00:00:00 2001
From: tv <tv@shackspace.de>
Date: Sun, 19 Jul 2015 23:23:57 +0200
Subject: [PATCH] 1 tv cd: enable 2 tv charybdis

---
 1systems/tv/cd.nix          |  7 +++++++
 2configs/tv/git-public.nix  |  2 +-
 3modules/tv/identity.nix    |  2 +-
 Zcerts/charybdis_cd.crt.pem | 24 ++++++++++++++++++++++++
 4 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 Zcerts/charybdis_cd.crt.pem

diff --git a/1systems/tv/cd.nix b/1systems/tv/cd.nix
index 0e45068a6..42e4ecf1a 100644
--- a/1systems/tv/cd.nix
+++ b/1systems/tv/cd.nix
@@ -14,6 +14,13 @@ in
     ../../2configs/tv/consul-server.nix
     ../../2configs/tv/exim-smarthost.nix
     ../../2configs/tv/git-public.nix
+    {
+      imports = [ ../../2configs/tv/charybdis.nix ];
+      tv.charybdis = {
+        enable = true;
+        sslCert = ../../Zcerts/charybdis_cd.crt.pem;
+      };
+    }
     {
       imports = [ ../../3modules/tv/ejabberd.nix ];
       tv.ejabberd = {
diff --git a/2configs/tv/git-public.nix b/2configs/tv/git-public.nix
index 6ea547c86..aef83667f 100644
--- a/2configs/tv/git-public.nix
+++ b/2configs/tv/git-public.nix
@@ -55,7 +55,7 @@ let
           post-receive = git.irc-announce {
             nick = config.networking.hostName; # TODO make this the default
             channel = "#retiolum";
-            server = "ire.retiolum";
+            server = "cd.retiolum";
           };
         };
         public = true;
diff --git a/3modules/tv/identity.nix b/3modules/tv/identity.nix
index ed7eb5703..d3ac91393 100644
--- a/3modules/tv/identity.nix
+++ b/3modules/tv/identity.nix
@@ -26,7 +26,7 @@ let
             "cgit"
           ];
           addr = "10.243.113.222";
-          #addr6 = "42:4522:25f8:36bb:8ccb:0150:231a:2af3";
+          addr6 = "42:4522:25f8:36bb:8ccb:0150:231a:2af3";
           #internet-addr = "162.219.5.183";
           cores = 2;
         };
diff --git a/Zcerts/charybdis_cd.crt.pem b/Zcerts/charybdis_cd.crt.pem
new file mode 100644
index 000000000..c613ff380
--- /dev/null
+++ b/Zcerts/charybdis_cd.crt.pem
@@ -0,0 +1,24 @@
+-----BEGIN CERTIFICATE-----
+MIIEGzCCAwOgAwIBAgIJAJJiphQRTzFPMA0GCSqGSIb3DQEBBQUAMIGjMQswCQYD
+VQQGEwJhcTEYMBYGA1UECAwPTWFyaWUgQnlyZCBMYW5kMSIwIAYDVQQHDBlCZW50
+bGV5IFN1YmdsYWNpYWwgVHJlbmNoMQ4wDAYDVQQKDAVrcmViczERMA8GA1UECwwI
+cmV0aW9sdW0xFDASBgNVBAMMC2NkLnJldGlvbHVtMR0wGwYJKoZIhvcNAQkBFg50
+dkB3dS5yZXRpb2x1bTAeFw0xNTA3MTkxODQ2MjhaFw0xNjA3MDkxODQ2MjhaMIGj
+MQswCQYDVQQGEwJhcTEYMBYGA1UECAwPTWFyaWUgQnlyZCBMYW5kMSIwIAYDVQQH
+DBlCZW50bGV5IFN1YmdsYWNpYWwgVHJlbmNoMQ4wDAYDVQQKDAVrcmViczERMA8G
+A1UECwwIcmV0aW9sdW0xFDASBgNVBAMMC2NkLnJldGlvbHVtMR0wGwYJKoZIhvcN
+AQkBFg50dkB3dS5yZXRpb2x1bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAMyPb37kchbjZi6WsvpQeGOVEBTU8B4E24GkfetbfYtsFqW6pIKN7DlTFKzJ
+3WKSLIf/cZuBQJucKuc8QXc5ZEXQ66QyCiX6al0j4C0AnHN17OhgH3yvmioWI4kI
+ycD4N5TnaD2V0OK/HlhKCrIEly6+Nczeo+k5vrcgkkSYJivFpgK1r5+taBYiU4cc
+Pgke2p3mRpZFfK61Ft6DlAg2rL2NVt7Qk0pp6BgCrtVIl968SmVKAEQBHnSYd9z2
+bNE2PH3qI+FLIfioOfXazmogxoQWR9LbKPUQ5nFRDXEJZg1hKDzseUkwV/oU8W3K
+a37lOovqy+qwjYELrWP346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