summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/wiki-irc-bot/default.nix
blob: 12686efba6453ede521fd929ba04414f270cbbff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, ... }:

let
  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
  '';
in {
  krebs.newsbot-js = {
    enable = true;
    package = pkg;
    ircServer = "chat.freenode.net";
    feeds = newsfile;
    urlShortenerHost = "go";
    urlShortenerPort = "80";
  };
}