diff options
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)) |