1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

taskwarrior-sync: add package option

Add option to change which package is used for taskwarrior-sync, to
e.g. taskwarrior3.
This commit is contained in:
Martin Eek Gerhardsen 2024-09-04 08:55:42 +02:00 committed by Robert Helgesson
parent 471e3eb0a1
commit 5130249ab2
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -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";
@ -36,7 +38,7 @@ in {
Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${pkgs.taskwarrior}/bin/task synchronize";
ExecStart = "${cfg.package}/bin/task synchronize";
};
};