2017-08-22 09:21:32 +00:00
|
|
|
{ config, pkgs, ... }:
|
2017-04-26 12:42:52 +00:00
|
|
|
|
|
|
|
let
|
2017-08-22 09:21:32 +00:00
|
|
|
pkg = pkgs.lib.overrideDerivation pkgs.newsbot-js (original: {
|
|
|
|
patches = [ ./wiki-output.patch ];
|
|
|
|
});
|
|
|
|
newsfile = pkgs.writeText "feeds" ''
|
|
|
|
nixoswiki-bot|https://nixos.wiki/api.php?days=7&limit=50&hidecategorization=1&action=feedrecentchanges&feedformat=rss|#krebs
|
|
|
|
'';
|
2017-04-26 12:42:52 +00:00
|
|
|
in {
|
2017-08-22 09:21:32 +00:00
|
|
|
krebs.newsbot-js = {
|
2017-04-26 12:42:52 +00:00
|
|
|
enable = true;
|
2017-08-22 09:21:32 +00:00
|
|
|
package = pkg;
|
|
|
|
ircServer = "chat.freenode.net";
|
|
|
|
feeds = newsfile;
|
|
|
|
urlShortenerHost = "go";
|
|
|
|
urlShortenerPort = "80";
|
2017-04-26 12:42:52 +00:00
|
|
|
};
|
|
|
|
}
|