m 2 dirctator: init
This commit is contained in:
parent
5822253bc1
commit
0735ba03d7
29
makefu/2configs/deployment/dirctator.nix
Normal file
29
makefu/2configs/deployment/dirctator.nix
Normal file
@ -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 = [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user