diff options
author | Soispha <soispha@vhack.eu> | 2023-10-21 00:13:14 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-21 00:13:14 +0200 |
commit | b0879b2093a2f12cacce3f137873c13d21d8b3a1 (patch) | |
tree | 64b90b44f488a7dfbe14d1c0dd3c074ec6ddcd96 /hm | |
parent | fix(hm/conf/taskwarrior/firefox): Generate the profile ids by counting (diff) | |
download | nixos-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.nix | 2 |
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; |