Skip to content

Commit

Permalink
taskwarrior-sync: add package option
Browse files Browse the repository at this point in the history
Add option to change which package is used for taskwarrior-sync, to
e.g. taskwarrior3.
  • Loading branch information
MartinEekGerhardsen authored and rycee committed Sep 6, 2024
1 parent 471e3eb commit 5130249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/services/taskwarrior-sync.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ in {
options.services.taskwarrior-sync = {
enable = mkEnableOption "Taskwarrior periodic sync";

package = mkPackageOption pkgs "taskwarrior" { };

frequency = mkOption {
type = types.str;
default = "*:0/5";
Expand All @@ -36,7 +38,7 @@ in {
Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${pkgs.taskwarrior}/bin/task synchronize";
ExecStart = "${cfg.package}/bin/task synchronize";
};
};

Expand Down

0 comments on commit 5130249

Please sign in to comment.