1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 12:01:06 +01:00
Files
niveum/configs/todo-txt.nix

16 lines
500 B
Nix
Raw Normal View History

2019-06-08 15:01:41 +02:00
{ pkgs, ... }:
let todo-txt-config = pkgs.writeText "todo.cfg" ''
export TODO_DIR="$(echo "$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null)/.todo" || echo "$HOME/cloud/Dropbox/todo")"
2019-06-08 15:01:41 +02:00
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}";
variables.TODOTXT_DEFAULT_ACTION = "ls";
};
}