1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01: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 = { options.services.taskwarrior-sync = {
enable = mkEnableOption "Taskwarrior periodic sync"; enable = mkEnableOption "Taskwarrior periodic sync";
package = mkPackageOption pkgs "taskwarrior" { };
frequency = mkOption { frequency = mkOption {
type = types.str; type = types.str;
default = "*:0/5"; default = "*:0/5";
@ -36,7 +38,7 @@ in {
Service = { Service = {
CPUSchedulingPolicy = "idle"; CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle"; IOSchedulingClass = "idle";
ExecStart = "${pkgs.taskwarrior}/bin/task synchronize"; ExecStart = "${cfg.package}/bin/task synchronize";
}; };
}; };