feat: adds telegram-bot-token via sops

This commit is contained in:
Lewis Wynne 2026-04-10 03:30:57 +01:00
parent c86f305071
commit e819939002
2 changed files with 34 additions and 2 deletions

View file

@ -1,5 +1,11 @@
{ guestbook, ... }:
{ guestbook, config, ... }:
{
sops.secrets.guestbook-telegram-token = {
sopsFile = ../../secrets/guestbook.yaml;
key = "telegram_bot_token";
owner = "guestbook";
};
services.guestbook = {
enable = true;
package = guestbook.packages.aarch64-linux.default;
@ -27,7 +33,8 @@
maxDuration = 20;
};
telegram = {
enable = false;
enable = true;
botTokenFile = config.sops.secrets.guestbook-telegram-token.path;
chatId = 8669496383;
};
security = {