l radio: Reaktor -> reaktor2
This commit is contained in:
parent
42ca9d3eb8
commit
1064023768
@ -170,32 +170,45 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
krebs.Reaktor.playlist = {
|
krebs.reaktor2.the_playlist = {
|
||||||
nickname = "the_playlist|r";
|
hostname = "irc.freenode.org";
|
||||||
channels = [
|
port = "6697";
|
||||||
"#the_playlist"
|
useTLS = true;
|
||||||
"#krebs"
|
nick = "the_playlist";
|
||||||
];
|
plugins = [
|
||||||
extraEnviron = {
|
{
|
||||||
REAKTOR_HOST = "irc.freenode.org";
|
plugin = "register";
|
||||||
};
|
config = {
|
||||||
plugins = with pkgs.ReaktorPlugins; [
|
channels = [
|
||||||
(buildSimpleReaktorPlugin "skip" {
|
"#the_playlist"
|
||||||
script = "${skip_track}/bin/skip_track";
|
"#krebs"
|
||||||
pattern = "^skip$";
|
];
|
||||||
})
|
};
|
||||||
(buildSimpleReaktorPlugin "current" {
|
}
|
||||||
script = "${print_current}/bin/print_current";
|
{
|
||||||
pattern = "^current$";
|
plugin = "system";
|
||||||
})
|
config = {
|
||||||
(buildSimpleReaktorPlugin "suggest" {
|
workdir = config.krebs.reaktor2.the_playlist.stateDir;
|
||||||
script = "${pkgs.writeDash "suggest" ''
|
hooks.PRIVMSG = [
|
||||||
echo "$@" >> $HOME/playlist_suggest
|
{
|
||||||
''}";
|
activate = "match";
|
||||||
pattern = "^suggest: (?P<args>.*)$";
|
pattern = ''!([^ ]+)(?:\s*(.*))?'';
|
||||||
})
|
command = 1;
|
||||||
|
arguments = [2];
|
||||||
|
commands = {
|
||||||
|
skip.filename = "${skip_track}/bin/skip_track";
|
||||||
|
current.filename = "${print_current}/bin/print_current";
|
||||||
|
suggest.filename = pkgs.writeDash "suggest" ''
|
||||||
|
echo "$@" >> playlist_suggest
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."radio.lassul.us" = {
|
virtualHosts."radio.lassul.us" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user