citadel

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

default.nix (588B)


      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 = "shopify sales bot";
     10 
     11     environment = {
     12       SHOPIFY_USER = extra.private.shopify-user;
     13       SHOPIFY_PASS = extra.private.shopify-pass;
     14     };
     15 
     16     serviceConfig.ExecStart = "${import-scripts}/bin/shopify-sales-bot";
     17     unitConfig.OnFailure = "notify-failed-user@%n.service";
     18 
     19     # 20th is always before the earliest possible last wednesday (22nd)
     20     startAt = "*-*-20 8:30:00";
     21   };
     22 }