2022-03-10 21:52:12 +01:00
|
|
|
{
|
|
|
|
|
pkgs,
|
2023-02-22 10:02:55 +01:00
|
|
|
config,
|
2022-03-10 21:52:12 +01:00
|
|
|
lib,
|
2023-02-24 23:10:45 +01:00
|
|
|
niveumPackages,
|
2022-03-10 21:52:12 +01:00
|
|
|
...
|
2023-02-24 23:10:45 +01:00
|
|
|
}: {
|
2024-10-08 18:51:43 +02:00
|
|
|
niveum.bots.logotheca = {
|
2020-04-09 16:57:24 +02:00
|
|
|
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;
|
|
|
|
|
chatIds = ["-1001760262519"];
|
|
|
|
|
parseMode = "Markdown";
|
|
|
|
|
};
|
2024-10-08 22:35:41 +02:00
|
|
|
matrix = {
|
2024-10-07 22:58:33 +02:00
|
|
|
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"
|
|
|
|
|
];
|
2024-10-07 22:58:33 +02:00
|
|
|
};
|
2023-02-24 23:10:45 +01:00
|
|
|
command = "${niveumPackages.literature-quote}/bin/literature-quote";
|
2020-04-09 16:57:24 +02:00
|
|
|
};
|
2022-05-22 11:47:59 +02:00
|
|
|
|
2024-10-07 22:58:33 +02:00
|
|
|
age.secrets = {
|
|
|
|
|
mastodon-token-logotheca.file = ../../secrets/mastodon-token-logotheca.age;
|
2024-10-08 22:35:41 +02:00
|
|
|
matrix-token-lakai.file = ../../secrets/matrix-token-lakai.age;
|
2024-10-07 22:58:33 +02:00
|
|
|
};
|
|
|
|
|
|
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.";
|
|
|
|
|
}
|
|
|
|
|
];
|
2020-04-09 16:57:24 +02:00
|
|
|
}
|