summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bgt/social-to-irc.nix
blob: e0898193ba2ce421491f1c186a39175bf2120998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ pkgs, ... }:
{
  systemd.services.brockman.environment."BROCKMAN_LOG_LEVEL" = "DEBUG";
  systemd.services.restart-brockman = {
    after = [ "brockman.service" ];
    wantedBy = [ "multi-user.target" ];
    startAt = "daily";
    script = "${pkgs.systemd}/bin/systemctl try-restart brockman.service";
  };
  krebs.brockman = {
    enable = true;
    config = {
      channel = "#binaergewitter";
      notifyErrors = false;
      irc = {
        host = "irc.libera.chat";
        port = 6667;
      };
      #controller = {
      #  nick = "brockman-systemdultras";
      #  channels = [];
      #};
      bots = {
        bgt-mastodon-rss = {
          feed = "https://jit.social/users/binaergewitter.rss";
          #extraChannels = [ "#binaergewitter" ];
          delay = 180;
        };
        bgt-blog-rss = {
          feed = "https://blog.binaergewitter.de/rss.xml";
          #extraChannels = [ "#binaergewitter" ];
          delay = 180;
        };
        bgt-twitter = {
          feed = "http://rss.makefu.r/?action=display&bridge=Twitter&context=By+username&u=binaergewitter&format=Atom";
          #extraChannels = [ "#binaergewitter" ];
          delay = 180;
        };
      };
    };

  };
}