mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
37 lines
876 B
Nix
37 lines
876 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
niveum.bots.hesychius = {
|
|
enable = true;
|
|
time = "08:00";
|
|
mastodon = {
|
|
enable = true;
|
|
language = "el";
|
|
tokenFile = config.age.secrets.mastodon-token-hesychius.path;
|
|
};
|
|
telegram = {
|
|
enable = true;
|
|
tokenFile = config.age.secrets.telegram-token-kmein.path;
|
|
chatIds = [ "@HesychiosAlexandreus" ];
|
|
};
|
|
command = "${pkgs.coreutils}/bin/shuf -n1 ${pkgs.hesychius}";
|
|
};
|
|
|
|
systemd.timers.bot-hesychius.timerConfig.RandomizedDelaySec = "10h";
|
|
|
|
age.secrets = {
|
|
mastodon-token-hesychius.file = ../../secrets/mastodon-token-hesychius.age;
|
|
};
|
|
|
|
niveum.passport.services = [
|
|
{
|
|
title = "Hesychius of Alexandria Bot";
|
|
description = "sends a random word from Hesychius of Alexandria's lexicon to Telegram.";
|
|
link = "https://t.me/HesychiosAlexandreus";
|
|
}
|
|
];
|
|
}
|