1
0
Fork 0
nixos-config/home/update_tasks.nix
2019-12-16 14:50:33 +01:00

18 lines
467 B
Nix

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