default.nix (497B)
1 extra: 2 { config, lib, pkgs, ... }: 3 { 4 systemd.user.services.transaction-bot = { 5 description = "tc transaction bot"; 6 7 wantedBy = [ "default.target" ]; 8 after = [ "default.target" ]; 9 10 environment = { 11 TUNECORE_USER = extra.private.tc-user; 12 TUNECORE_PASS = extra.private.tc-pass; 13 }; 14 15 serviceConfig.ExecStart = "${extra.import-scripts}/bin/tunecore-transaction-bot"; 16 unitConfig.OnFailure = "notify-failed@%n.service"; 17 18 startAt = "*-*-* 01:00:00"; 19 }; 20 } 21