1
0
Fork 0
pvv-nixos-config/hosts/bicep/services/calendar-bot.nix

21 lines
492 B
Nix
Raw Normal View History

2023-08-27 02:36:01 +02:00
{ config, lib, pkgs, ... }:
{
sops.secrets."calendar-bot/matrix_token" = {
sopsFile = ../../../secrets/bicep/bicep.yaml;
};
services.pvv-calendar-bot = {
enable = true;
settings = {
matrix = {
homeserver = "https://matrix.pvv.ntnu.no";
user = "@bot_calendar:pvv.ntnu.no";
channel = "!MCYRZwhWAeNqUhwkUx:feal.no";
};
secretsFile = config.sops.secrets."calendar-bot/matrix_token".path;
onCalendar = "0 9 * * *";
};
};
}