1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 11:31:09 +01:00

feat(todo.txt): reactivate and add to status bar

This commit is contained in:
Kierán Meinhardt
2020-04-23 13:15:34 +02:00
parent e21eb7887c
commit 49cd307026
2 changed files with 18 additions and 10 deletions

View File

@@ -7,17 +7,18 @@ let
echo "$HOME/cloud/Dropbox/todo"
fi
'';
todo-txt-config = pkgs.writeText "todo.cfg" ''
in {
home-manager.users.me.home.file.".todo/config".text = ''
export TODO_DIR="$(${get-todo-dir})"
export TODO_FILE="$TODO_DIR/todo.txt"
export DONE_FILE="$TODO_DIR/done.txt"
export REPORT_FILE="$TODO_DIR/report.txt"
'';
in {
environment = {
systemPackages = [ pkgs.todo-txt-cli ];
shellAliases.t = "todo.sh -d ${todo-txt-config}";
shellAliases.t = "todo.sh";
variables.TODOTXT_DEFAULT_ACTION = "ls";
};
}