1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/bots/logotheca.nix

38 lines
862 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
pkgs,
config,
2022-03-10 21:52:12 +01:00
...
2025-12-27 22:22:54 +01:00
}:
{
2024-10-08 18:51:43 +02:00
niveum.bots.logotheca = {
enable = true;
time = "08/6:00";
2024-10-05 14:42:44 +02:00
telegram = {
enable = true;
tokenFile = config.age.secrets.telegram-token-kmein.path;
2025-12-27 22:22:54 +01:00
chatIds = [ "-1001760262519" ];
2024-10-05 14:42:44 +02:00
parseMode = "Markdown";
};
2024-10-08 22:35:41 +02:00
matrix = {
enable = true;
2024-10-08 22:35:41 +02:00
homeserver = "matrix.4d2.org";
tokenFile = config.age.secrets.matrix-token-lakai.path;
chatIds = [
"!zlwCuPiCNMSxDviFzA:4d2.org"
];
};
command = "${pkgs.literature-quote}/bin/literature-quote";
};
2022-05-22 11:47:59 +02:00
age.secrets = {
2024-10-08 22:35:41 +02:00
matrix-token-lakai.file = ../../secrets/matrix-token-lakai.age;
};
2022-05-22 11:47:59 +02:00
niveum.passport.services = [
{
title = "Literature quote bot";
description = "sends me and my friends three <a href=\"https://logotheca.xn--kiern-0qa.de/\">logotheca</a> quotes a day.";
}
];
}