From b7a97a0076d7ce261f67573115e14bbcd0d6d679 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 7 Apr 2022 21:43:31 +0200 Subject: flora: fix trainspotter --- flora/services/urlwatcher.nix | 11 ++--------- flora/services/urlwatcher.scm | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'flora') diff --git a/flora/services/urlwatcher.nix b/flora/services/urlwatcher.nix index 56e043a..5b6d7bf 100644 --- a/flora/services/urlwatcher.nix +++ b/flora/services/urlwatcher.nix @@ -7,18 +7,11 @@ wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; serviceConfig.Type = "simple"; - path = [ pkgs.git ]; + path = with pkgs; [ curl libzip system-sendmail ]; script = '' ${pkgs.gauche}/bin/gosh ${pkgs.copyPathToStore ./urlwatcher.scm} ''; + startAt = "daily"; }; - systemd.timers.wikibot = { - wantedBy = [ "timers.target" ]; - timerConfig = { - Unit = "urlwatcher-ilztal.service"; - OnBootSec = "5h"; - OnActiveSec = "1d"; - }; - }; } diff --git a/flora/services/urlwatcher.scm b/flora/services/urlwatcher.scm index 2884c05..0519903 100644 --- a/flora/services/urlwatcher.scm +++ b/flora/services/urlwatcher.scm @@ -42,7 +42,7 @@ Link: ~a (~a) " newhash url diff pretty-date)) - (sendmail "stuebinm@disroot.org"))) + (sendmail "stuebinm@disroot.org" "-t"))) (sexp-list->file cachefile (list (list pretty-date newhash)) -- cgit v1.2.3