summaryrefslogtreecommitdiffstats
path: root/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-24 23:21:28 +0200
committermakefu <github@syntax-fehler.de>2017-04-24 23:21:28 +0200
commitc7fb075b0342cbe522f0d63355d0946252b792f0 (patch)
tree764c7860c1287d49d65e68bc6b62579e723ed611 /2configs/deployment
parente2502807337c3085573e349f502f821ecc27a7a7 (diff)
m 1 gum: add newsbot deployment
Diffstat (limited to '2configs/deployment')
-rw-r--r--2configs/deployment/newsbot.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/2configs/deployment/newsbot.nix b/2configs/deployment/newsbot.nix
new file mode 100644
index 000000000..748803447
--- /dev/null
+++ b/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";
+ };
+}