diff options
author | tv <tv@krebsco.de> | 2017-06-27 19:40:31 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-27 19:40:31 +0200 |
commit | e1e16e0d5d3c8b80000899920cea89c1b8bd5be4 (patch) | |
tree | f3f2765ac510bc578d2a9c350e9384284fe5fd83 /makefu/2configs/deployment/dirctator.nix | |
parent | 74429f245d366e783ecbcfb0ebd83a7f57e78e6a (diff) | |
parent | 10b6ac40265a0f653b8753e87894cbfb6fa00590 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/2configs/deployment/dirctator.nix')
-rw-r--r-- | makefu/2configs/deployment/dirctator.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/makefu/2configs/deployment/dirctator.nix b/makefu/2configs/deployment/dirctator.nix new file mode 100644 index 000000000..b8e61955d --- /dev/null +++ b/makefu/2configs/deployment/dirctator.nix @@ -0,0 +1,30 @@ +{ 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 = { + package = pkgs.logstash5; + enable = true; + inputConfig = '' + irc { + channels => [ "#krebs", "#afra" ] + host => "irc.freenode.net" + nick => "dirctator" + } + ''; + filterConfig = '' + ''; + outputConfig = '' + stdout { codec => rubydebug } + exec { command => "${runit} '%{message}" } + ''; + plugins = [ ]; + }; +} |