summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/newsbot.nix
blob: 748803447294c131bf0ededa6c735ae509833ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, pkgs, ... }:

let
  newsfile = pkgs.writeText "feeds" ''
    nixoswiki-bot|https://github.com/Mic92/nixos-wiki/wiki.atom|#krebs
  '';
in {
  environment.systemPackages = [
    pkgs.newsbot-js
  ];
  krebs.newsbot-js = {
    enable = true;
    ircServer = "chat.freenode.net";
    feeds = newsfile;
    urlShortenerHost = "go";
    urlShortenerPort = "80";
  };
}