taskwarrior: change config file location and use relative theme paths (#2455)
After taskwarrior 2.6.0, its default config file now locates at `$XDG_CONFIG_HOME/task/taskrc`, and builtin themes can be included via relative paths.main
parent
c4c761ba55
commit
df931a59a5
@ -0,0 +1 @@ |
||||
{ taskwarrior = ./taskwarrior.nix; } |
@ -0,0 +1,40 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
{ |
||||
config = { |
||||
programs.taskwarrior = { |
||||
enable = true; |
||||
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.taskwarrior = { }; |
||||
|
||||
nmt.script = '' |
||||
assertFileExists home-files/.config/task/taskrc |
||||
assertFileContent home-files/.config/task/taskrc ${ |
||||
pkgs.writeText "taskwarrior.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 |
||||
|
||||
'' |
||||
} |
||||
''; |
||||
}; |
||||
} |
Loading…
Reference in new issue