[Nix-dev] Packaging a tool that registers in crontab

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Sep 2 11:42:00 CEST 2014


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/


More information about the nix-dev mailing list