summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/systemdultras/ircbot.nix
blob: 006cafec0c5e7441dadaf451d9d48838da51adea (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
{ 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 = "#systemdultras";
      irc = {
        host = "irc.freenode.net";
        port = 6667;
      };
      notifyErrors = false;
      bots = {
        r-systemdultras-rss = {
          feed = "https://www.reddit.com/r/systemdultras/.rss";
          delay = 136;
        };
        r-systemd-rss = {
          feed = "https://www.reddit.com/r/systemd/.rss";
          delay = 172;
        };
      };
    };

  };
}