1
0
mirror of https://github.com/kmein/niveum synced 2026-03-29 16:51:07 +02:00

bots: post on mastodon as well

This commit is contained in:
2024-10-05 14:42:44 +02:00
parent 729f1180b7
commit 5ba3dfc451
9 changed files with 163 additions and 58 deletions

View File

@@ -4,11 +4,18 @@
lib,
...
}: {
niveum.telegramBots.smyth = {
niveum.bots.smyth = {
enable = true;
time = "08:00";
tokenFile = config.age.secrets.telegram-token-kmein.path;
chatIds = ["@HerbertWeirSmyth"];
mastodon = {
enable = false;
language = "en";
};
telegram = {
enable = true;
tokenFile = config.age.secrets.telegram-token-kmein.path;
chatIds = ["@HerbertWeirSmyth"];
};
command = toString (pkgs.writers.writeDash "random-smyth" ''
set -efu
@@ -26,7 +33,7 @@
'');
};
systemd.timers.telegram-bot-smyth.timerConfig.RandomizedDelaySec = "10h";
systemd.timers.bot-smyth.timerConfig.RandomizedDelaySec = "10h";
niveum.passport.services = [
{