diff options
author | makefu <github@syntax-fehler.de> | 2017-06-18 20:37:35 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-06-18 20:37:35 +0200 |
commit | 0735ba03d798759b6febb95e9c090aca38809265 (patch) | |
tree | 9bb7246040cf84ead0805720e80bb7dc8ec06ffb | |
parent | 5822253bc17d0ea380933a8b5382e4f7396ff9e3 (diff) |
m 2 dirctator: init
-rw-r--r-- | makefu/2configs/deployment/dirctator.nix | 29 |
1 files changed, 29 insertions, 0 deletions
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 = [ ]; + }; +} |