1
0
Fork 0
nixos-config/home-manager/roles/update_tasks.nix
2020-09-16 22:18:37 +02:00

18 lines
465 B
Nix

{ config, lib, pkgs, ... }: {
systemd.user = {
services.update_tasks = {
Unit = { Description = "Update taskwarrior tasks"; };
Service = {
Type = "oneshot";
Environment = "PATH=${pkgs.taskwarrior}/bin:${pkgs.git}/bin";
ExecStart = "${pkgs.kassandra}/bin/update_tasks";
};
};
timers.update_tasks = {
Timer = { OnCalendar = "hourly"; };
Install = { WantedBy = [ "timers.target" ]; };
};
};
}