diff options
author | stuebinm | 2022-04-07 21:43:31 +0200 |
---|---|---|
committer | stuebinm | 2022-04-07 21:43:31 +0200 |
commit | b7a97a0076d7ce261f67573115e14bbcd0d6d679 (patch) | |
tree | 1bab45e427b3587258a6b11560921c0f70cbbe6a | |
parent | 6ff038b4d29ec761336c807f4a79831c99f29d67 (diff) |
flora: fix trainspotter
Diffstat (limited to '')
-rw-r--r-- | flora/services/urlwatcher.nix | 11 | ||||
-rw-r--r-- | flora/services/urlwatcher.scm | 2 |
2 files changed, 3 insertions, 10 deletions
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)) |