summaryrefslogtreecommitdiff
path: root/flora/services/urlwatcher.nix
blob: 5b6d7bf96aa419f21dcdd0e2ffa4df40b214ab7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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";
  };

}