mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 00:17:10 +00:00
taskwarrior: support taskwarrior3 migration
Support taskwarrior3 migration, following the approach in [1] to avoid breaking changes. [1]: https://github.com/NixOS/nixpkgs/pull/303632 Closes: https://github.com/nix-community/home-manager/issues/5310 Link: https://github.com/nix-community/home-manager/pull/5782
This commit is contained in:
parent
127ccc3eb7
commit
aaebdea769
3 changed files with 6 additions and 3 deletions
|
@ -85,7 +85,8 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkPackageOption pkgs "taskwarrior" { };
|
package =
|
||||||
|
mkPackageOption pkgs "taskwarrior" { example = "pkgs.taskwarrior3"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,7 +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" { };
|
package =
|
||||||
|
mkPackageOption pkgs "taskwarrior" { example = "pkgs.taskwarrior3"; };
|
||||||
|
|
||||||
frequency = mkOption {
|
frequency = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -6,6 +6,7 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
programs.taskwarrior = {
|
programs.taskwarrior = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.taskwarrior3;
|
||||||
colorTheme = "dark-violets-256";
|
colorTheme = "dark-violets-256";
|
||||||
dataLocation = "/some/data/location";
|
dataLocation = "/some/data/location";
|
||||||
config = {
|
config = {
|
||||||
|
@ -18,7 +19,7 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
test.stubs.taskwarrior = { };
|
test.stubs.taskwarrior3 = { };
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.config/task/home-manager-taskrc
|
assertFileExists home-files/.config/task/home-manager-taskrc
|
||||||
|
|
Loading…
Reference in a new issue