Update calendar bot details

This commit is contained in:
2023-09-08 02:23:59 +02:00
parent 1370ccddf8
commit 9f36bd86a8
3 changed files with 31 additions and 28 deletions

View File

@@ -1,17 +1,22 @@
{ config, lib, pkgs, ... }:
{
let
cfg = config.services.pvv-calendar-bot;
in {
sops.secrets."calendar-bot/matrix_token" = {
sopsFile = ../../../secrets/bicep/bicep.yaml;
key = "calendar-bot/matrix_token";
owner = cfg.user;
group = cfg.group;
};
services.pvv-calendar-bot = {
enable = true;
settings = {
matrix = {
homeserver = "https://matrix.pvv.ntnu.no";
user = "@bot_calendar:pvv.ntnu.no";
channel = "!MCYRZwhWAeNqUhwkUx:feal.no";
channel = "!gkNLUIhYVpEyLatcRz:pvv.ntnu.no";
};
secretsFile = config.sops.secrets."calendar-bot/matrix_token".path;
onCalendar = "0 9 * * *";