From 0735ba03d798759b6febb95e9c090aca38809265 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Sun, 18 Jun 2017 20:37:35 +0200
Subject: m 2 dirctator: init

---
 makefu/2configs/deployment/dirctator.nix | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 makefu/2configs/deployment/dirctator.nix

(limited to 'makefu/2configs/deployment')

diff --git a/makefu/2configs/deployment/dirctator.nix b/makefu/2configs/deployment/dirctator.nix
new file mode 100644
index 000000000..14d5918cb
--- /dev/null
+++ b/makefu/2configs/deployment/dirctator.nix
@@ -0,0 +1,29 @@
+{ pkgs, lib, ... }:
+
+with lib;
+let
+  port = 18872;
+  runit = pkgs.writeDash "runit" ''
+    set -xeuf
+    export PULSE_COOKIE=/var/run/pulse/.config/pulse/cookie
+    echo "$@" | sed 's/^dirctator://' | ${pkgs.espeak}/bin/espeak -v mb-de7 2>&1 | tee -a /tmp/speak
+  '';
+in {
+  services.logstash = {
+    enable = true;
+    inputConfig = ''
+      irc {
+        channels => [ "#krebs", "#afra" ]
+        host => "irc.freenode.net"
+        nick => "dirctator"
+      }
+    '';
+    filterConfig = ''
+    '';
+    outputConfig = ''
+      stdout { codec => rubydebug }
+      exec { command => "${runit} '%{message}" }
+    '';
+    plugins = [ ];
+  };
+}
-- 
cgit v1.2.3


From 8a150bcd44d5d32d5c36be7a3cba885d0d1d8b59 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Sun, 18 Jun 2017 22:48:40 +0200
Subject: m 2 default: revert to working ref

---
 makefu/2configs/deployment/dirctator.nix | 1 +
 1 file changed, 1 insertion(+)

(limited to 'makefu/2configs/deployment')

diff --git a/makefu/2configs/deployment/dirctator.nix b/makefu/2configs/deployment/dirctator.nix
index 14d5918cb..b8e61955d 100644
--- a/makefu/2configs/deployment/dirctator.nix
+++ b/makefu/2configs/deployment/dirctator.nix
@@ -10,6 +10,7 @@ let
   '';
 in {
   services.logstash = {
+    package = pkgs.logstash5;
     enable = true;
     inputConfig = ''
       irc {
-- 
cgit v1.2.3