puyak.r: use brockman for news

This commit is contained in:
lassulus 2020-12-30 09:47:57 +01:00
parent a180af5b08
commit b96b4fce07
6 changed files with 218 additions and 160 deletions

View File

@ -25,7 +25,7 @@
#### NEWS #### #### NEWS ####
<stockholm/krebs/2configs/ircd.nix> <stockholm/krebs/2configs/ircd.nix>
#<stockholm/krebs/2configs/news.nix> #<stockholm/krebs/2configs/news.nix>
#<stockholm/krebs/2configs/news-spam.nix> <stockholm/krebs/2configs/news-spam.nix>
### shackspace ### ### shackspace ###

View File

@ -1,164 +1,167 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
krebs.newsbot-js.news-spam = { krebs.brockman = {
urlShortenerHost = "go.lassul.us"; enable = true;
feeds = pkgs.writeText "feeds" '' config = {
_aje|http://www.aljazeera.com/Services/Rss/?PostingId=2007731105943979989|#snews irc.host = "localhost";
_allafrica|http://allafrica.com/tools/headlines/rdf/latest/headlines.rdf|#snews bots = {
_antirez|http://antirez.com/rss|#snews aje = { feed ="http://www.aljazeera.com/Services/Rss/?PostingId=2007731105943979989"; channels = [ "#snews" ]; };
_archlinux|http://www.archlinux.org/feeds/news/|#snews allafrica = { feed ="http://allafrica.com/tools/headlines/rdf/latest/headlines.rdf"; channels = [ "#snews" ]; };
_ars|http://feeds.arstechnica.com/arstechnica/index?format=xml|#snews antirez = { feed ="http://antirez.com/rss"; channels = [ "#snews" ]; };
_augustl|http://augustl.com/atom.xml|#snews archlinux = { feed ="http://www.archlinux.org/feeds/news/"; channels = [ "#snews" ]; };
_bbc|http://feeds.bbci.co.uk/news/rss.xml|#snews ars = { feed ="http://feeds.arstechnica.com/arstechnica/index?format=xml"; channels = [ "#snews" ]; };
_bdt_aktuelle_themen|http://www.bundestag.de/blueprint/servlet/service/de/14154/asFeed/index.rss|#snews augustl = { feed ="http://augustl.com/atom.xml"; channels = [ "#snews" ]; };
_bdt_drucksachen|http://www.bundestag.de/dip21rss/bundestag_drucksachen.rss|#snews bbc = { feed ="http://feeds.bbci.co.uk/news/rss.xml"; channels = [ "#snews" ]; };
_bdt_plenarproto|http://www.bundestag.de/rss_feeds/plenarprotokolle.rss|#snews bdt_aktuelle_themen = { feed ="http://www.bundestag.de/blueprint/servlet/service/de/14154/asFeed/index.rss"; channels = [ "#snews" ]; };
_bdt_pressemitteilungen|http://www.bundestag.de/blueprint/servlet/service/de/273112/asFeed/index.rss|#snews bdt_drucksachen = { feed ="http://www.bundestag.de/dip21rss/bundestag_drucksachen.rss"; channels = [ "#snews" ]; };
_bitcoinpakistan|https://bitcoinspakistan.com/feed/|#snews bdt_plenarproto = { feed ="http://www.bundestag.de/rss_feeds/plenarprotokolle.rss"; channels = [ "#snews" ]; };
_cancer|http://feeds.feedburner.com/ncinewsreleases?format=xml|#snews bdt_pressemitteilungen = { feed ="http://www.bundestag.de/blueprint/servlet/service/de/273112/asFeed/index.rss"; channels = [ "#snews" ]; };
_carta|http://feeds2.feedburner.com/carta-standard-rss|#snews bitcoinpakistan = { feed ="https://bitcoinspakistan.com/feed/"; channels = [ "#snews" ]; };
_catholic_news|http://feeds.feedburner.com/catholicnewsagency/dailynews|#snews cancer = { feed ="http://feeds.feedburner.com/ncinewsreleases?format=xml"; channels = [ "#snews" ]; };
_cbc_busi|http://rss.cbc.ca/lineup/business.xml|#snews carta = { feed ="http://feeds2.feedburner.com/carta-standard-rss"; channels = [ "#snews" ]; };
_cbc_offbeat|http://www.cbc.ca/cmlink/rss-offbeat|#snews catholic_news = { feed ="http://feeds.feedburner.com/catholicnewsagency/dailynews"; channels = [ "#snews" ]; };
_cbc_pol|http://rss.cbc.ca/lineup/politics.xml|#snews cbc_busi = { feed ="http://rss.cbc.ca/lineup/business.xml"; channels = [ "#snews" ]; };
_cbc_tech|http://rss.cbc.ca/lineup/technology.xml|#snews cbc_offbeat = { feed ="http://www.cbc.ca/cmlink/rss-offbeat"; channels = [ "#snews" ]; };
_cbc_top|http://rss.cbc.ca/lineup/topstories.xml|#snews cbc_pol = { feed ="http://rss.cbc.ca/lineup/politics.xml"; channels = [ "#snews" ]; };
_ccc|http://www.ccc.de/rss/updates.rdf|#snews cbc_tech = { feed ="http://rss.cbc.ca/lineup/technology.xml"; channels = [ "#snews" ]; };
_chan_biz|http://boards.4chan.org/biz/index.rss|#snews cbc_top = { feed ="http://rss.cbc.ca/lineup/topstories.xml"; channels = [ "#snews" ]; };
_chan_g|http://boards.4chan.org/g/index.rss|#snews ccc = { feed ="http://www.ccc.de/rss/updates.rdf"; channels = [ "#snews" ]; };
_chan_int|http://boards.4chan.org/int/index.rss|#snews chan_biz = { feed ="http://boards.4chan.org/biz/index.rss"; channels = [ "#snews" ]; };
_chan_sci|http://boards.4chan.org/sci/index.rss|#snews chan_g = { feed ="http://boards.4chan.org/g/index.rss"; channels = [ "#snews" ]; };
_chan_x|http://boards.4chan.org/x/index.rss|#snews chan_int = { feed ="http://boards.4chan.org/int/index.rss"; channels = [ "#snews" ]; };
_c|http://www.tempolimit-lichtgeschwindigkeit.de/news.xml|#snews chan_sci = { feed ="http://boards.4chan.org/sci/index.rss"; channels = [ "#snews" ]; };
_cryptogon|http://www.cryptogon.com/?feed=rss2|#snews chan_x = { feed ="http://boards.4chan.org/x/index.rss"; channels = [ "#snews" ]; };
_csm|http://rss.csmonitor.com/feeds/csm|#snews c = { feed ="http://www.tempolimit-lichtgeschwindigkeit.de/news.xml"; channels = [ "#snews" ]; };
_csm_world|http://rss.csmonitor.com/feeds/world|#snews cryptogon = { feed ="http://www.cryptogon.com/?feed=rss2"; channels = [ "#snews" ]; };
_danisch|http://www.danisch.de/blog/feed/|#snews csm = { feed ="http://rss.csmonitor.com/feeds/csm"; channels = [ "#snews" ]; };
_dod|http://www.defense.gov/news/afps2.xml|#snews csm_world = { feed ="http://rss.csmonitor.com/feeds/world"; channels = [ "#snews" ]; };
_dwn|http://deutsche-wirtschafts-nachrichten.de/feed/customfeed/|#snews danisch = { feed ="http://www.danisch.de/blog/feed/"; channels = [ "#snews" ]; };
_ecat|http://ecat.com/feed|#snews dod = { feed ="http://www.defense.gov/news/afps2.xml"; channels = [ "#snews" ]; };
_eia_press|http://www.eia.gov/rss/press_rss.xml|#snews dwn = { feed ="http://deutsche-wirtschafts-nachrichten.de/feed/customfeed/"; channels = [ "#snews" ]; };
_eia_today|http://www.eia.gov/rss/todayinenergy.xml|#snews ecat = { feed ="http://ecat.com/feed"; channels = [ "#snews" ]; };
_embargowatch|https://embargowatch.wordpress.com/feed/|#snews eia_press = { feed ="http://www.eia.gov/rss/press_rss.xml"; channels = [ "#snews" ]; };
_ethereum-comments|http://blog.ethereum.org/comments/feed|#snews eia_today = { feed ="http://www.eia.gov/rss/todayinenergy.xml"; channels = [ "#snews" ]; };
_ethereum|http://blog.ethereum.org/feed|#snews embargowatch = { feed ="https://embargowatch.wordpress.com/feed/"; channels = [ "#snews" ]; };
_europa_ric|http://ec.europa.eu/research/infocentre/rss/infocentre-rss.xml|#snews ethereum-comments = { feed ="http://blog.ethereum.org/comments/feed"; channels = [ "#snews" ]; };
_eu_survei|http://www.eurosurveillance.org/public/RSSFeed/RSS.aspx|#snews ethereum = { feed ="http://blog.ethereum.org/feed"; channels = [ "#snews" ]; };
_exploitdb|http://www.exploit-db.com/rss.xml|#snews europa_ric = { feed ="http://ec.europa.eu/research/infocentre/rss/infocentre-rss.xml"; channels = [ "#snews" ]; };
_fars|http://www.farsnews.com/rss.php|#snews #test eu_survei = { feed ="http://www.eurosurveillance.org/public/RSSFeed/RSS.aspx"; channels = [ "#snews" ]; };
_faz_feui|http://www.faz.net/rss/aktuell/feuilleton/|#snews exploitdb = { feed ="http://www.exploit-db.com/rss.xml"; channels = [ "#snews" ]; };
_faz_politik|http://www.faz.net/rss/aktuell/politik/|#snews fars = { feed ="http://www.farsnews.com/rss.php"; channels = [ "#snews #test" ]; };
_faz_wirtschaft|http://www.faz.net/rss/aktuell/wirtschaft/|#snews faz_feui = { feed ="http://www.faz.net/rss/aktuell/feuilleton/"; channels = [ "#snews" ]; };
_fbi|https://www.fbi.gov/news/rss.xml|#snews faz_politik = { feed ="http://www.faz.net/rss/aktuell/politik/"; channels = [ "#snews" ]; };
_fedreserve|http://www.federalreserve.gov/feeds/press_all.xml|#snews faz_wirtschaft = { feed ="http://www.faz.net/rss/aktuell/wirtschaft/"; channels = [ "#snews" ]; };
_fefe|http://blog.fefe.de/rss.xml|#snews fbi = { feed ="https://www.fbi.gov/news/rss.xml"; channels = [ "#snews" ]; };
_forbes|http://www.forbes.com/forbes/feed2/|#snews fedreserve = { feed ="http://www.federalreserve.gov/feeds/press_all.xml"; channels = [ "#snews" ]; };
_forbes_realtime|http://www.forbes.com/real-time/feed2/|#snews fefe = { feed ="http://blog.fefe.de/rss.xml"; channels = [ "#snews" ]; };
_fox|http://feeds.foxnews.com/foxnews/latest|#snews forbes = { feed ="http://www.forbes.com/forbes/feed2/"; channels = [ "#snews" ]; };
_geheimorganisation|http://geheimorganisation.org/feed/|#snews forbes_realtime = { feed ="http://www.forbes.com/real-time/feed2/"; channels = [ "#snews" ]; };
_GerForPol|http://www.german-foreign-policy.com/de/news/rss-2.0|#snews fox = { feed ="http://feeds.foxnews.com/foxnews/latest"; channels = [ "#snews" ]; };
_gmanet|http://www.gmanetwork.com/news/rss/news|#snews geheimorganisation = { feed ="http://geheimorganisation.org/feed/"; channels = [ "#snews" ]; };
_golem|http://rss.golem.de/rss.php|#snews GerForPol = { feed ="http://www.german-foreign-policy.com/de/news/rss-2.0"; channels = [ "#snews" ]; };
_google|http://news.google.com/?output=rss|#snews gmanet = { feed ="http://www.gmanetwork.com/news/rss/news"; channels = [ "#snews" ]; };
_greenpeace|http://feeds.feedburner.com/GreenpeaceNews|#snews golem = { feed ="http://rss.golem.de/rss.php"; channels = [ "#snews" ]; };
_guardian_uk|http://feeds.theguardian.com/theguardian/uk-news/rss|#snews google = { feed ="http://news.google.com/?output=rss"; channels = [ "#snews" ]; };
_gulli|http://ticker.gulli.com/rss/|#snews greenpeace = { feed ="http://feeds.feedburner.com/GreenpeaceNews"; channels = [ "#snews" ]; };
_hackernews|https://news.ycombinator.com/rss|#snews guardian_uk = { feed ="http://feeds.theguardian.com/theguardian/uk-news/rss"; channels = [ "#snews" ]; };
_handelsblatt|http://www.handelsblatt.com/contentexport/feed/schlagzeilen|#snews gulli = { feed ="http://ticker.gulli.com/rss/"; channels = [ "#snews" ]; };
_heise|https://www.heise.de/newsticker/heise-atom.xml|#snews hackernews = { feed ="https://news.ycombinator.com/rss"; channels = [ "#snews" ]; };
_hindu_business|http://www.thehindubusinessline.com/?service=rss|#snews handelsblatt = { feed ="http://www.handelsblatt.com/contentexport/feed/schlagzeilen"; channels = [ "#snews" ]; };
_hindu|http://www.thehindu.com/?service=rss|#snews heise = { feed ="https://www.heise.de/newsticker/heise-atom.xml"; channels = [ "#snews" ]; };
_ign|http://feeds.ign.com/ign/all|#snews hindu_business = { feed ="http://www.thehindubusinessline.com/?service=rss"; channels = [ "#snews" ]; };
_independent|http://www.independent.com/rss/headlines/|#snews hindu = { feed ="http://www.thehindu.com/?service=rss"; channels = [ "#snews" ]; };
_indymedia|https://de.indymedia.org/rss.xml|#snews ign = { feed ="http://feeds.ign.com/ign/all"; channels = [ "#snews" ]; };
_info_libera|http://www.informationliberation.com/rss.xml|#snews independent = { feed ="http://www.independent.com/rss/headlines/"; channels = [ "#snews" ]; };
_klagen-gegen-rundfuckbeitrag|http://klagen-gegen-rundfunkbeitrag.blogspot.com/feeds/posts/default|#snews indymedia = { feed ="https://de.indymedia.org/rss.xml"; channels = [ "#snews" ]; };
_korea_herald|http://www.koreaherald.com/rss_xml.php|#snews info_libera = { feed ="http://www.informationliberation.com/rss.xml"; channels = [ "#snews" ]; };
_linuxinsider|http://www.linuxinsider.com/perl/syndication/rssfull.pl|#snews klagen-gegen-rundfuckbeitrag = { feed ="http://klagen-gegen-rundfunkbeitrag.blogspot.com/feeds/posts/default"; channels = [ "#snews" ]; };
_lisp|http://planet.lisp.org/rss20.xml|#snews korea_herald = { feed ="http://www.koreaherald.com/rss_xml.php"; channels = [ "#snews" ]; };
_liveleak|http://www.liveleak.com/rss|#snews linuxinsider = { feed ="http://www.linuxinsider.com/perl/syndication/rssfull.pl"; channels = [ "#snews" ]; };
_lolmythesis|http://lolmythesis.com/rss|#snews lisp = { feed ="http://planet.lisp.org/rss20.xml"; channels = [ "#snews" ]; };
_LtU|http://lambda-the-ultimate.org/rss.xml|#snews liveleak = { feed ="http://www.liveleak.com/rss"; channels = [ "#snews" ]; };
_lukepalmer|http://lukepalmer.wordpress.com/feed/|#snews lolmythesis = { feed ="http://lolmythesis.com/rss"; channels = [ "#snews" ]; };
_mit|http://web.mit.edu/newsoffice/rss-feeds.feed?type=rss|#snews LtU = { feed ="http://lambda-the-ultimate.org/rss.xml"; channels = [ "#snews" ]; };
_mongrel2_master|https://github.com/zedshaw/mongrel2/commits/master.atom|#snews lukepalmer = { feed ="http://lukepalmer.wordpress.com/feed/"; channels = [ "#snews" ]; };
_nds|http://www.nachdenkseiten.de/?feed=atom|#snews mit = { feed ="http://web.mit.edu/newsoffice/rss-feeds.feed?type=rss"; channels = [ "#snews" ]; };
_netzpolitik|https://netzpolitik.org/feed/|#snews mongrel2_master = { feed ="https://github.com/zedshaw/mongrel2/commits/master.atom"; channels = [ "#snews" ]; };
_newsbtc|http://newsbtc.com/feed/|#snews nds = { feed ="http://www.nachdenkseiten.de/?feed=atom"; channels = [ "#snews" ]; };
_nnewsg|http://www.net-news-global.net/rss/rssfeed.xml|#snews netzpolitik = { feed ="https://netzpolitik.org/feed/"; channels = [ "#snews" ]; };
_npr_busi|http://www.npr.org/rss/rss.php?id=1006|#snews newsbtc = { feed ="http://newsbtc.com/feed/"; channels = [ "#snews" ]; };
_npr_headlines|http://www.npr.org/rss/rss.php?id=1001|#snews nnewsg = { feed ="http://www.net-news-global.net/rss/rssfeed.xml"; channels = [ "#snews" ]; };
_npr_pol|http://www.npr.org/rss/rss.php?id=1012|#snews npr_busi = { feed ="http://www.npr.org/rss/rss.php?id=1006"; channels = [ "#snews" ]; };
_npr_world|http://www.npr.org/rss/rss.php?id=1004|#snews npr_headlines = { feed ="http://www.npr.org/rss/rss.php?id=1001"; channels = [ "#snews" ]; };
_nsa|https://www.nsa.gov/rss.xml|#snews #bullerei npr_pol = { feed ="http://www.npr.org/rss/rss.php?id=1012"; channels = [ "#snews" ]; };
_nytimes|http://rss.nytimes.com/services/xml/rss/nyt/World.xml|#snews npr_world = { feed ="http://www.npr.org/rss/rss.php?id=1004"; channels = [ "#snews" ]; };
_painload|https://github.com/krebs/painload/commits/master.atom|#snews nsa = { feed ="https://www.nsa.gov/rss.xml"; channels = [ "#snews #bullerei" ]; };
_phys|http://phys.org/rss-feed/|#snews nytimes = { feed ="http://rss.nytimes.com/services/xml/rss/nyt/World.xml"; channels = [ "#snews" ]; };
_piraten|https://www.piratenpartei.de/feed/|#snews painload = { feed ="https://github.com/krebs/painload/commits/master.atom"; channels = [ "#snews" ]; };
_polizei_berlin|http://www.berlin.de/polizei/presse-fahndung/_rss_presse.xml|#snews phys = { feed ="http://phys.org/rss-feed/"; channels = [ "#snews" ]; };
_presse_polizei|http://www.presseportal.de/rss/polizei.rss2|#snews piraten = { feed ="https://www.piratenpartei.de/feed/"; channels = [ "#snews" ]; };
_presseportal|http://www.presseportal.de/rss/presseportal.rss2|#snews polizei_berlin = { feed ="http://www.berlin.de/polizei/presse-fahndung/_rss_presse.xml"; channels = [ "#snews" ]; };
_prisonplanet|http://prisonplanet.com/feed.rss|#snews presse_polizei = { feed ="http://www.presseportal.de/rss/polizei.rss2"; channels = [ "#snews" ]; };
_rawstory|http://www.rawstory.com/rs/feed/|#snews presseportal = { feed ="http://www.presseportal.de/rss/presseportal.rss2"; channels = [ "#snews" ]; };
_reddit_4chan|http://www.reddit.com/r/4chan/new/.rss|#snews prisonplanet = { feed ="http://prisonplanet.com/feed.rss"; channels = [ "#snews" ]; };
_reddit_anticonsum|http://www.reddit.com/r/Anticonsumption/new/.rss|#snews rawstory = { feed ="http://www.rawstory.com/rs/feed/"; channels = [ "#snews" ]; };
_reddit_btc|http://www.reddit.com/r/Bitcoin/new/.rss|#snews reddit_4chan = { feed ="http://www.reddit.com/r/4chan/new/.rss"; channels = [ "#snews" ]; };
_reddit_consp|http://reddit.com/r/conspiracy/.rss|#snews reddit_anticonsum = { feed ="http://www.reddit.com/r/Anticonsumption/new/.rss"; channels = [ "#snews" ]; };
_reddit_haskell|http://www.reddit.com/r/haskell/.rss|#snews reddit_btc = { feed ="http://www.reddit.com/r/Bitcoin/new/.rss"; channels = [ "#snews" ]; };
_reddit_nix|http://www.reddit.com/r/nixos/.rss|#snews reddit_consp = { feed ="http://reddit.com/r/conspiracy/.rss"; channels = [ "#snews" ]; };
_reddit_prog|http://www.reddit.com/r/programming/new/.rss|#snews reddit_haskell = { feed ="http://www.reddit.com/r/haskell/.rss"; channels = [ "#snews" ]; };
_reddit_sci|http://www.reddit.com/r/science/.rss|#snews reddit_nix = { feed ="http://www.reddit.com/r/nixos/.rss"; channels = [ "#snews" ]; };
_reddit_tech|http://www.reddit.com/r/technology/.rss|#snews reddit_prog = { feed ="http://www.reddit.com/r/programming/new/.rss"; channels = [ "#snews" ]; };
_reddit_tpp|http://www.reddit.com/r/twitchplayspokemon/.rss|#snews reddit_sci = { feed ="http://www.reddit.com/r/science/.rss"; channels = [ "#snews" ]; };
_reddit_world|http://www.reddit.com/r/worldnews/.rss|#snews reddit_tech = { feed ="http://www.reddit.com/r/technology/.rss"; channels = [ "#snews" ]; };
_r-ethereum|http://www.reddit.com/r/ethereum/.rss|#snews reddit_tpp = { feed ="http://www.reddit.com/r/twitchplayspokemon/.rss"; channels = [ "#snews" ]; };
_reuters|http://feeds.reuters.com/Reuters/worldNews|#snews reddit_world = { feed ="http://www.reddit.com/r/worldnews/.rss"; channels = [ "#snews" ]; };
_reuters-odd|http://feeds.reuters.com/reuters/oddlyEnoughNews?format=xml|#snews r-ethereum = { feed ="http://www.reddit.com/r/ethereum/.rss"; channels = [ "#snews" ]; };
_rt|http://rt.com/rss/news/|#snews reuters = { feed ="http://feeds.reuters.com/Reuters/worldNews"; channels = [ "#snews" ]; };
_schallurauch|http://feeds.feedburner.com/SchallUndRauch|#snews reuters-odd = { feed ="http://feeds.reuters.com/reuters/oddlyEnoughNews?format=xml"; channels = [ "#snews" ]; };
_sciencemag|http://news.sciencemag.org/rss/current.xml|#snews rt = { feed ="http://rt.com/rss/news/"; channels = [ "#snews" ]; };
_scmp|http://www.scmp.com/rss/91/feed|#snews schallurauch = { feed ="http://feeds.feedburner.com/SchallUndRauch"; channels = [ "#snews" ]; };
_sec-db|http://feeds.security-database.com/SecurityDatabaseToolsWatch|#snews sciencemag = { feed ="http://news.sciencemag.org/rss/current.xml"; channels = [ "#snews" ]; };
_shackspace|http://shackspace.de/atom.xml|#snews scmp = { feed ="http://www.scmp.com/rss/91/feed"; channels = [ "#snews" ]; };
_shz_news|http://www.shz.de/nachrichten/newsticker/rss|#snews sec-db = { feed ="http://feeds.security-database.com/SecurityDatabaseToolsWatch"; channels = [ "#snews" ]; };
_sky_busi|http://feeds.skynews.com/feeds/rss/business.xml|#snews shackspace = { feed ="http://shackspace.de/atom.xml"; channels = [ "#snews" ]; };
_sky_pol|http://feeds.skynews.com/feeds/rss/politics.xml|#snews shz_news = { feed ="http://www.shz.de/nachrichten/newsticker/rss"; channels = [ "#snews" ]; };
_sky_strange|http://feeds.skynews.com/feeds/rss/strange.xml|#snews sky_busi = { feed ="http://feeds.skynews.com/feeds/rss/business.xml"; channels = [ "#snews" ]; };
_sky_tech|http://feeds.skynews.com/feeds/rss/technology.xml|#snews sky_pol = { feed ="http://feeds.skynews.com/feeds/rss/politics.xml"; channels = [ "#snews" ]; };
_sky_world|http://feeds.skynews.com/feeds/rss/world.xml|#snews sky_strange = { feed ="http://feeds.skynews.com/feeds/rss/strange.xml"; channels = [ "#snews" ]; };
_slashdot|http://rss.slashdot.org/Slashdot/slashdot|#snews sky_tech = { feed ="http://feeds.skynews.com/feeds/rss/technology.xml"; channels = [ "#snews" ]; };
_slate|http://feeds.slate.com/slate|#snews sky_world = { feed ="http://feeds.skynews.com/feeds/rss/world.xml"; channels = [ "#snews" ]; };
_spiegel_eil|http://www.spiegel.de/schlagzeilen/eilmeldungen/index.rss|#snews slashdot = { feed ="http://rss.slashdot.org/Slashdot/slashdot"; channels = [ "#snews" ]; };
_spiegel_top|http://www.spiegel.de/schlagzeilen/tops/index.rss|#snews slate = { feed ="http://feeds.slate.com/slate"; channels = [ "#snews" ]; };
_standardmedia_ke|http://www.standardmedia.co.ke/rss/headlines.php|#snews spiegel_eil = { feed ="http://www.spiegel.de/schlagzeilen/eilmeldungen/index.rss"; channels = [ "#snews" ]; };
_stern|http://www.stern.de/feed/standard/all/|#snews spiegel_top = { feed ="http://www.spiegel.de/schlagzeilen/tops/index.rss"; channels = [ "#snews" ]; };
_stz|http://www.stuttgarter-zeitung.de/rss/topthemen.rss.feed|#snews standardmedia_ke = { feed ="http://www.standardmedia.co.ke/rss/headlines.php"; channels = [ "#snews" ]; };
_sz_politik|http://rss.sueddeutsche.de/rss/Politik|#snews stern = { feed ="http://www.stern.de/feed/standard/all/"; channels = [ "#snews" ]; };
_sz_wirtschaft|http://rss.sueddeutsche.de/rss/Wirtschaft|#snews stz = { feed ="http://www.stuttgarter-zeitung.de/rss/topthemen.rss.feed"; channels = [ "#snews" ]; };
_sz_wissen|http://rss.sueddeutsche.de/rss/Wissen|#snews sz_politik = { feed ="http://rss.sueddeutsche.de/rss/Politik"; channels = [ "#snews" ]; };
_tagesschau|http://www.tagesschau.de/newsticker.rdf|#snews sz_wirtschaft = { feed ="http://rss.sueddeutsche.de/rss/Wirtschaft"; channels = [ "#snews" ]; };
_taz|http://taz.de/Themen-des-Tages/!p15;rss/|#snews sz_wissen = { feed ="http://rss.sueddeutsche.de/rss/Wissen"; channels = [ "#snews" ]; };
_telegraph|http://www.telegraph.co.uk/rss.xml|#snews tagesschau = { feed ="http://www.tagesschau.de/newsticker.rdf"; channels = [ "#snews" ]; };
_telepolis|http://www.heise.de/tp/rss/news-atom.xml|#snews taz = { feed ="http://taz.de/Themen-des-Tages/!p15;rss/"; channels = [ "#snews" ]; };
_the_insider|http://www.theinsider.org/rss/news/headlines-xml.asp|#snews telegraph = { feed ="http://www.telegraph.co.uk/rss.xml"; channels = [ "#snews" ]; };
_tigsource|http://www.tigsource.com/feed/|#snews telepolis = { feed ="http://www.heise.de/tp/rss/news-atom.xml"; channels = [ "#snews" ]; };
_tinc|http://tinc-vpn.org/news/index.rss|#snews the_insider = { feed ="http://www.theinsider.org/rss/news/headlines-xml.asp"; channels = [ "#snews" ]; };
_torr_bits|http://feeds.feedburner.com/TorrentfreakBits|#snews tigsource = { feed ="http://www.tigsource.com/feed/"; channels = [ "#snews" ]; };
_torrentfreak|http://feeds.feedburner.com/Torrentfreak|#snews tinc = { feed ="http://tinc-vpn.org/news/index.rss"; channels = [ "#snews" ]; };
_torr_news|http://feed.torrentfreak.com/Torrentfreak/|#snews torr_bits = { feed ="http://feeds.feedburner.com/TorrentfreakBits"; channels = [ "#snews" ]; };
_travel_warnings|http://feeds.travel.state.gov/ca/travelwarnings-alerts|#snews torrentfreak = { feed ="http://feeds.feedburner.com/Torrentfreak"; channels = [ "#snews" ]; };
_un_afr|http://www.un.org/apps/news/rss/rss_africa.asp|#snews torr_news = { feed ="http://feed.torrentfreak.com/Torrentfreak/"; channels = [ "#snews" ]; };
_un_am|http://www.un.org/apps/news/rss/rss_americas.asp|#snews travel_warnings = { feed ="http://feeds.travel.state.gov/ca/travelwarnings-alerts"; channels = [ "#snews" ]; };
_un_eu|http://www.un.org/apps/news/rss/rss_europe.asp|#snews un_afr = { feed ="http://www.un.org/apps/news/rss/rss_africa.asp"; channels = [ "#snews" ]; };
_un_me|http://www.un.org/apps/news/rss/rss_mideast.asp|#snews un_am = { feed ="http://www.un.org/apps/news/rss/rss_americas.asp"; channels = [ "#snews" ]; };
_un_pac|http://www.un.org/apps/news/rss/rss_asiapac.asp|#snews un_eu = { feed ="http://www.un.org/apps/news/rss/rss_europe.asp"; channels = [ "#snews" ]; };
_un_top|http://www.un.org/apps/news/rss/rss_top.asp|#snews un_me = { feed ="http://www.un.org/apps/news/rss/rss_mideast.asp"; channels = [ "#snews" ]; };
_us_math_society|http://www.ams.org/cgi-bin/content/news_items.cgi?rss=1|#snews un_pac = { feed ="http://www.un.org/apps/news/rss/rss_asiapac.asp"; channels = [ "#snews" ]; };
_vimperator|https://sites.google.com/a/vimperator.org/www/blog/posts.xml|#snews un_top = { feed ="http://www.un.org/apps/news/rss/rss_top.asp"; channels = [ "#snews" ]; };
_weechat|http://dev.weechat.org/feed/atom|#snews us_math_society = { feed ="http://www.ams.org/cgi-bin/content/news_items.cgi?rss=1"; channels = [ "#snews" ]; };
_xkcd|https://xkcd.com/rss.xml|#snews vimperator = { feed ="https://sites.google.com/a/vimperator.org/www/blog/posts.xml"; channels = [ "#snews" ]; };
_zdnet|http://www.zdnet.com/news/rss.xml|#snews weechat = { feed ="http://dev.weechat.org/feed/atom"; channels = [ "#snews" ]; };
''; xkcd = { feed ="https://xkcd.com/rss.xml"; channels = [ "#snews" ]; };
zdnet = { feed ="http://www.zdnet.com/news/rss.xml"; channels = [ "#snews" ]; };
};
};
}; };
} }

View File

@ -0,0 +1,30 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.krebs.brockman;
in {
options.krebs.brockman = {
enable = mkEnableOption "brockman";
config = mkOption { type = types.attrs; }; # TODO make real config here
};
config = mkIf cfg.enable {
users.extraUsers.brockman.isNormalUser = false;
systemd.services.brockman = {
description = "RSS to IRC broadcaster";
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
serviceConfig = {
Restart = "always";
ExecStart = ''
${pkgs.brockman}/bin/brockman ${pkgs.writeText "brockman.json" (builtins.toJSON cfg.config)}
'';
User = config.users.extraUsers.brockman.name;
PrivateTmp = true;
RuntimeDirectory = "brockman";
WorkingDirectory = "%t/brockman";
};
};
};
}

View File

@ -11,6 +11,7 @@ let
./apt-cacher-ng.nix ./apt-cacher-ng.nix
./backup.nix ./backup.nix
./bepasty-server.nix ./bepasty-server.nix
./brockman.nix
./buildbot/master.nix ./buildbot/master.nix
./buildbot/slave.nix ./buildbot/slave.nix
./build.nix ./build.nix

View File

@ -13,6 +13,7 @@ foldl' mergeAttrs {}
// //
{ {
brockman = self.haskellPackages.brockman;
reaktor2 = self.haskellPackages.reaktor2; reaktor2 = self.haskellPackages.reaktor2;
ReaktorPlugins = self.callPackage ./simple/Reaktor/plugins.nix {}; ReaktorPlugins = self.callPackage ./simple/Reaktor/plugins.nix {};

View File

@ -0,0 +1,23 @@
{ mkDerivation, aeson, async, base, bloomfilter, bytestring
, conduit, containers, feed, hslogger, irc-conduit, microlens
, network, optparse-applicative, stdenv, stm, text, wreq
, fetchFromGitHub
}:
mkDerivation rec {
pname = "brockman";
version = "1.4.2";
src = fetchFromGitHub {
owner = "kmein";
repo = "brockman";
rev = version;
sha256 = "0y6ki8kj176knajjfnklrrwwqra23lpz10x5c603rgsjwxgwrxzk";
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
aeson async base bloomfilter bytestring conduit containers feed
hslogger irc-conduit microlens network optparse-applicative stm
text wreq
];
license = stdenv.lib.licenses.mit;
}