mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 19:59:47 +01:00
aaebdea769
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
41 lines
1,009 B
Nix
41 lines
1,009 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.taskwarrior = {
|
|
enable = true;
|
|
package = pkgs.taskwarrior3;
|
|
colorTheme = "dark-violets-256";
|
|
dataLocation = "/some/data/location";
|
|
config = {
|
|
urgency.user.tag.next.coefficient = 42.42;
|
|
urgency.blocked.coefficient = -42;
|
|
};
|
|
extraConfig = ''
|
|
include /my/stuff
|
|
urgency.user.tag.test.coefficient=-42.42
|
|
'';
|
|
};
|
|
|
|
test.stubs.taskwarrior3 = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/task/home-manager-taskrc
|
|
assertFileContent home-files/.config/task/home-manager-taskrc ${
|
|
pkgs.writeText "taskwarrior.home-conf.expected" ''
|
|
data.location=/some/data/location
|
|
include dark-violets-256.theme
|
|
|
|
urgency.blocked.coefficient=-42
|
|
urgency.user.tag.next.coefficient=42.420000
|
|
|
|
include /my/stuff
|
|
urgency.user.tag.test.coefficient=-42.42
|
|
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|