about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-21 00:13:14 +0200
committerSoispha <soispha@vhack.eu>2023-10-21 00:13:14 +0200
commitb0879b2093a2f12cacce3f137873c13d21d8b3a1 (patch)
tree64b90b44f488a7dfbe14d1c0dd3c074ec6ddcd96 /hm
parentfix(hm/conf/taskwarrior/firefox): Generate the profile ids by counting (diff)
downloadnixos-config-b0879b2093a2f12cacce3f137873c13d21d8b3a1.tar.gz
nixos-config-b0879b2093a2f12cacce3f137873c13d21d8b3a1.zip
fix(hm/conf/taswarrior/projects): Remove duplicates before further processing
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/taskwarrior/hooks/default.nix2
1 files changed, 1 insertions, 1 deletions
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;