Malte Tammena
9bada411db
To prepare for an addiotional /users/modules which can be shared between users.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ pkgs, config, ... }:
|
|
|
|
let dataLocation = "/home/malte/Tasks";
|
|
in {
|
|
# Install timewarrior aswell!
|
|
# Timewarrior hook needs Python3.. or a patch.. to lazy for the latter
|
|
home.packages = with pkgs; [ timewarrior python3 ];
|
|
|
|
programs.taskwarrior = {
|
|
inherit dataLocation;
|
|
enable = true;
|
|
colorTheme = "dark-256";
|
|
config = {
|
|
include = "${pkgs.taskwarrior}/share/doc/task/rc/holidays.de-DE.rc";
|
|
urgency.user.tag = {
|
|
irgendwann.coefficient = "-100.0";
|
|
extern.coefficient = "-50.0";
|
|
};
|
|
dateformat = "D.M.Y H:N";
|
|
|
|
uda.reviewed = {
|
|
type = "date";
|
|
label = "Reviewed";
|
|
};
|
|
report._reviewed = {
|
|
description = "Tasksh review report. Adjust the filter to your needs.";
|
|
columns = "uuid";
|
|
sort = "reviewed+,modified+";
|
|
filter =
|
|
"( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING )";
|
|
};
|
|
};
|
|
};
|
|
|
|
xdg.configFile.${dataLocation + "/hooks/on-modify.timewarrior"} = {
|
|
source = "${pkgs.timewarrior}/share/doc/timew/ext/on-modify.timewarrior";
|
|
executable = true;
|
|
};
|
|
}
|