~jb55/citadel

ref: 0cffe2f1a4a83c13892392e8325dff4ab05be317 citadel/nix-config/machines/archer/youtube-pub-sales-bot/default.nix -rw-r--r-- 637 bytes
0cffe2f1William Casarin monad: no pci hack for now 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
extra:
{ config, lib, pkgs, ... }:
let cfg = extra.private;
in
{
  systemd.user.services.youtube-pub-sales-bot = {
    description = "youtube publishing sales bot";

    environment = {
      YOUTUBE_TYPE="publishing";
      YOUTUBE_OWNER_ID="svBi-FFZiMepj02zaNfDNQ";
    };

    serviceConfig.ExecStart = "${extra.import-scripts}/bin/youtube-sales-bot";
    unitConfig.OnFailure = "notify-failed-user@%n.service";

    # monthly, more than half way through the month. This is because YouTube
    # updates these sheets all the way up to at most half the month (highest
    # I've seen is ~15th)
    startAt = "*-*-20 11:00:00";
  };
}