default.nix (666B)
1 extra: 2 { config, lib, pkgs, ... }: 3 let cfg = extra.private; 4 util = extra.util; 5 import-scripts = extra.import-scripts; 6 in 7 { 8 systemd.user.services.shopify-sales-bot = { 9 description = "beatport sales bot"; 10 11 wantedBy = [ "default.target" ]; 12 after = [ "default.target" ]; 13 14 environment = { 15 SHOPIFY_USER = extra.private.beatport-user; 16 SHOPIFY_PASS = extra.private.beatport-pass; 17 }; 18 19 serviceConfig.ExecStart = "${import-scripts}/bin/beaport-sales-bot"; 20 unitConfig.OnFailure = "notify-failed-user@%n.service"; 21 22 # 20th is always before the earliest possible last wednesday (22nd) 23 startAt = "*-*-20 7:30:00"; 24 }; 25 }