citadel

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

default.nix (586B)


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