~jb55/citadel

ref: 0cffe2f1a4a83c13892392e8325dff4ab05be317 citadel/nix-config/machines/archer/beatport-sales-bot/default.nix -rw-r--r-- 666 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
24
25
extra:
{ config, lib, pkgs, ... }:
let cfg = extra.private;
    util = extra.util;
    import-scripts = extra.import-scripts;
in
{
  systemd.user.services.shopify-sales-bot = {
    description = "beatport sales bot";

    wantedBy = [ "default.target" ];
    after    = [ "default.target" ];

    environment = {
      SHOPIFY_USER = extra.private.beatport-user;
      SHOPIFY_PASS = extra.private.beatport-pass;
    };

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

    # 20th is always before the earliest possible last wednesday (22nd)
    startAt = "*-*-20 7:30:00";
  };
}