mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +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 = {
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue