forked from Drift/pvv-nixos-config
Add pvv-calendar-bot to bicep
This commit is contained in:
20
hosts/bicep/services/calendar-bot.nix
Normal file
20
hosts/bicep/services/calendar-bot.nix
Normal 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 * * *";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user