summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/newsbot.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-27 18:59:57 +0200
committerlassulus <lass@lassul.us>2017-04-27 18:59:57 +0200
commit379ae78ba95ba8d39873c3d8f14893f133588bb3 (patch)
treebb7ea38ea55d261a6ace536e57cbb111dd85825c /makefu/2configs/deployment/newsbot.nix
parenteaa6c57cd7aa06311a12cb76fae7e82976c7b865 (diff)
parentb1cad2a6497ac285c7c1a11d5bdeadb64e6bc2a5 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/deployment/newsbot.nix')
-rw-r--r--makefu/2configs/deployment/newsbot.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/deployment/newsbot.nix b/makefu/2configs/deployment/newsbot.nix
new file mode 100644
index 000000000..748803447
--- /dev/null
+++ b/makefu/2configs/deployment/newsbot.nix
@@ -0,0 +1,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";
+ };
+}