Add pvv-calendar-bot to bicep

This commit is contained in:
2023-08-27 02:36:01 +02:00
parent bfe94003c4
commit 3beb76e411
5 changed files with 110 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
./services/mysql.nix
./services/postgres.nix
./services/mysql.nix
./services/calendar-bot.nix
./services/matrix
];

View File

@@ -0,0 +1,20 @@
{ 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 * * *";
};
};
}