On 31/08/14 20:16, Damien Cassou wrote:

> I'm looking for a solution to package this tool for both nixos and
> non-nixos nix-based distributions.

The best solution is not to use cron but systemd timer units. Just create units
$out/etc/systemd/system/<foo>.service and $out/etc/systemd/system/<foo>.timer.
On NixOS, add the package to the systemd.packages option to ensure that its
units are picked up.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to