1
0
Fork 0
nixos-config/home-manager/roles/update_tasks.nix

18 lines
465 B
Nix
Raw Normal View History

2019-12-16 13:28:48 +00:00
{ config, lib, pkgs, ... }: {
2018-06-19 23:50:38 +00:00
systemd.user = {
services.update_tasks = {
2019-07-31 21:56:52 +00:00
Unit = { Description = "Update taskwarrior tasks"; };
2018-06-19 23:50:38 +00:00
Service = {
Type = "oneshot";
2020-07-01 23:20:18 +00:00
Environment = "PATH=${pkgs.taskwarrior}/bin:${pkgs.git}/bin";
2020-09-16 20:18:35 +00:00
ExecStart = "${pkgs.kassandra}/bin/update_tasks";
2018-06-19 23:50:38 +00:00
};
};
timers.update_tasks = {
2019-07-31 21:56:52 +00:00
Timer = { OnCalendar = "hourly"; };
Install = { WantedBy = [ "timers.target" ]; };
2018-06-19 23:50:38 +00:00
};
};
}