From 4d8f53f3de585261124c5147fbe39f704a5eeaf3 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 1 Oct 2023 13:48:42 +0200 Subject: feat(hm/conf/taskwarrior): Add first config for neorg ⇄ taskwarrior interop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hm/soispha/conf/taskwarrior/default.nix | 35 ++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'hm/soispha/conf/taskwarrior/default.nix') diff --git a/hm/soispha/conf/taskwarrior/default.nix b/hm/soispha/conf/taskwarrior/default.nix index 803d2d5d..78bcacd0 100644 --- a/hm/soispha/conf/taskwarrior/default.nix +++ b/hm/soispha/conf/taskwarrior/default.nix @@ -1,10 +1,39 @@ {...}: { - programs.taskwarrior = { + programs.taskwarrior = let + mkContext = project: { + inherit (project) name; + value = { + read = "project:${project.name}"; + write = "project:${project.name}"; + rc = { + neorg_path = "${project.prefix}/${project.name}/index.norg"; + }; + }; + }; + context = builtins.listToAttrs (builtins.map mkContext (import ./projects {})); + in { enable = true; - colorTheme = "dark-blue-256"; config = { news.version = "2.6.0"; - # TODO: Add something here <2023-09-30> + complete.all.tags = true; + list.all = { + projects = true; + tags = true; + }; + regex = true; + weekstart = "Monday"; + uda = { + neorg = { + type = "string"; + label = "Neorg"; + }; + }; + color = true; + + inherit context; }; + extraConfig = '' + include ${./nord.theme} + ''; }; } -- cgit 1.4.1