diff options
Diffstat (limited to 'hm/soispha/pkgs/scripts.nix')
-rw-r--r-- | hm/soispha/pkgs/scripts.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index 0c58d83a..8e98bccb 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -71,7 +71,7 @@ }; neorg-scr = sysLib.writeShellScriptWithLibraryAndKeepPath { name = "neorg"; - src = ./scripts/wrappers/neorg; + src = ./scripts/wrappers/neorg/neorg; dependencies = with pkgs; [ cocogitto git-crypt @@ -87,10 +87,15 @@ ALL_PROJECTS_COMMA = "${config.soispha.taskwarrior.projects.projects_comma}"; ALL_PROJECTS_PIPE = "${config.soispha.taskwarrior.projects.projects_pipe}"; ALL_WORKSPACES = "${lib.strings.concatStringsSep "|" (builtins.attrNames config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces)}"; - ID_GENERATION_FUNCTION = - # It's just impossible to correctly quote this function when it's in any language that - # has special treatment for backslashes - ./scripts/wrappers/neorg_id_completion_function; + ID_GENERATION_FUNCTION = "${sysLib.writeShellScriptWithLibrary { + name = "neorg_id_function"; + src = ./scripts/wrappers/neorg/neorg_id_function.sh; + dependencies = with pkgs; [ + taskwarrior + gawk + findutils # xargs + ]; + }}/bin/neorg_id_function"; # TODO: Replace the hard-coded path here with some reference <2023-10-20> TASK_PROJECT_FILE = "/home/soispha/repos/nix/nixos-config/hm/soispha/conf/taskwarrior/projects/default.nix"; |