mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29: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:
parent
471e3eb0a1
commit
5130249ab2
1 changed files with 3 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue