citadel

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

default.nix (545B)


      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.cogs-bot = {
      9     description = "cogs bot";
     10 
     11     wantedBy = [ "default.target" ];
     12     after    = [ "default.target" ];
     13 
     14     environment = {
     15       COGS_SHEET_ID="1lIluimJqBlGK1yRTmsekwUmk0_Wk0wD9VErUE8z6_dY";
     16     };
     17 
     18     serviceConfig.ExecStart = "${import-scripts}/bin/cogs-bot daily-check";
     19     unitConfig.OnFailure = "notify-failed-user@%n.service";
     20 
     21     startAt = "*-*-* 5:30:00";
     22   };
     23 }