mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat(zaatar): convert to flake feat(tahina, tabula): convert to flake feat(makanek): convert to flake feat(manakish, zaatar): convert to flake feat(ci): build flake systems fix: ci build feat: secrets via submodule foo foo foo
28 lines
688 B
Nix
28 lines
688 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: let
|
|
hesychius = inputs.scripts.outPath + "/hesychius/hesychius.txt";
|
|
in {
|
|
niveum.telegramBots.hesychius = {
|
|
enable = true;
|
|
time = "08:00";
|
|
tokenFile = config.age.secrets.telegram-token-kmein.path;
|
|
chatIds = ["@HesychiosAlexandreus"];
|
|
command = "${pkgs.coreutils}/bin/shuf -n1 ${hesychius}";
|
|
};
|
|
|
|
systemd.timers.telegram-bot-hesychius.timerConfig.RandomizedDelaySec = "10h";
|
|
|
|
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";
|
|
}
|
|
];
|
|
}
|