{ config, lib, pkgs, ... }: { systemd.services.urlwatcher-ilztal = { enable = true; description = "script watching the ilztalbahn gtfs for changes"; wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; serviceConfig.Type = "simple"; path = with pkgs; [ curl libzip system-sendmail ]; script = '' ${pkgs.gauche}/bin/gosh ${pkgs.copyPathToStore ./urlwatcher.scm} ''; startAt = "daily"; }; }