2021-11-24 03:33:03 +01:00
|
|
|
{ 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 = ''
|
2022-04-07 19:29:53 +02:00
|
|
|
assertFileExists home-files/.config/task/home-manager-taskrc
|
|
|
|
assertFileContent home-files/.config/task/home-manager-taskrc ${
|
|
|
|
pkgs.writeText "taskwarrior.home-conf.expected" ''
|
2021-11-24 03:33:03 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|