summaryrefslogtreecommitdiff
path: root/flora/services/trainspotter.nix
blob: 5b81f7e3cf712377b112b66b696764dd68bc87fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, pkgs, ... }:

{
  systemd.services.trainspotter = {
    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 mailutils ];
    script = ''
      ${pkgs.gauche}/bin/gosh ${pkgs.copyPathToStore ./trainspotter.scm}
    '';
    startAt = "daily";
  };

}