citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

default.nix (637B)


      1 
      2 extra:
      3 { config, lib, pkgs, ... }:
      4 let cfg = extra.private;
      5 in
      6 {
      7   systemd.user.services.youtube-pub-sales-bot = {
      8     description = "youtube publishing sales bot";
      9 
     10     environment = {
     11       YOUTUBE_TYPE="publishing";
     12       YOUTUBE_OWNER_ID="svBi-FFZiMepj02zaNfDNQ";
     13     };
     14 
     15     serviceConfig.ExecStart = "${extra.import-scripts}/bin/youtube-sales-bot";
     16     unitConfig.OnFailure = "notify-failed-user@%n.service";
     17 
     18     # monthly, more than half way through the month. This is because YouTube
     19     # updates these sheets all the way up to at most half the month (highest
     20     # I've seen is ~15th)
     21     startAt = "*-*-20 11:00:00";
     22   };
     23 }