todo-txt: init

This commit is contained in:
Elnu 2023-02-19 16:53:15 -08:00
parent 18f3d245bb
commit 1c1b5256b9
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ pkgs, ... }:
{
home = {
packages = with pkgs; [
todo-txt-cli
#todofi-sh
];
file = let
todoDir = ".todo";
actionsDir = "${todoDir}/actions";
in {
".config/todo/config".text = ''
export TODO_DIR=~/${todoDir}
export TODO_ACTIONS_DIR=~/${actionsDir}
'';
"${actionsDir}/pri" = {
source = ./pri.sh;
executable = true;
};
"${actionsDir}/p" = {
source = ./p.sh;
executable = true;
};
};
};
programs = {
bash.shellAliases.t = "todo.sh";
neovim.plugins = with pkgs.vimPlugins; [ todo-txt-vim ];
};
}