From b0879b2093a2f12cacce3f137873c13d21d8b3a1 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 21 Oct 2023 00:13:14 +0200 Subject: fix(hm/conf/taswarrior/projects): Remove duplicates before further processing --- hm/soispha/conf/taskwarrior/hooks/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hm/soispha/conf/taskwarrior') diff --git a/hm/soispha/conf/taskwarrior/hooks/default.nix b/hm/soispha/conf/taskwarrior/hooks/default.nix index 75f9abe7..f2a6579c 100644 --- a/hm/soispha/conf/taskwarrior/hooks/default.nix +++ b/hm/soispha/conf/taskwarrior/hooks/default.nix @@ -26,7 +26,7 @@ ++ (builtins.map mkProjectName (builtins.map (mkProject project) project.subprojects))) else [project.name]; - projects = lib.lists.flatten (builtins.map mkProjectName (import ../projects {})); + projects = lib.lists.unique (lib.lists.naturalSort (lib.lists.flatten (builtins.map mkProjectName (import ../projects {})))); projects_newline = builtins.concatStringsSep "\n" projects; projects_comma = builtins.concatStringsSep ", " projects; -- cgit 1.4.1