nixos-config/2configs/bgt/social-to-irc.nix
2021-10-01 18:33:07 +02:00

44 lines
1.2 KiB
Nix

{ 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;
};
};
};
};
}