1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-13 06:39:44 +01: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:
NAHO 2024-08-30 20:48:07 +02:00 committed by Robert Helgesson
parent 127ccc3eb7
commit aaebdea769
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
3 changed files with 6 additions and 3 deletions

View file

@ -85,7 +85,8 @@ in {
''; '';
}; };
package = mkPackageOption pkgs "taskwarrior" { }; package =
mkPackageOption pkgs "taskwarrior" { example = "pkgs.taskwarrior3"; };
}; };
}; };

View file

@ -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;

View file

@ -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