about summary refs log tree commit diff stats
path: root/hm/soispha/conf/taskwarrior/firefox/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/soispha/conf/taskwarrior/firefox/default.nix')
-rw-r--r--hm/soispha/conf/taskwarrior/firefox/default.nix24
1 files changed, 2 insertions, 22 deletions
diff --git a/hm/soispha/conf/taskwarrior/firefox/default.nix b/hm/soispha/conf/taskwarrior/firefox/default.nix
index 5c6dd314..494d269a 100644
--- a/hm/soispha/conf/taskwarrior/firefox/default.nix
+++ b/hm/soispha/conf/taskwarrior/firefox/default.nix
@@ -5,31 +5,11 @@
   bookmarks,
   search,
   lib,
+  config,
   ...
 }: let
   hexLib = import ./lib.nix {inherit lib;};
-  mkProject = project: subproject:
-    if builtins.isString subproject
-    then {
-      name = "${project.name}.${subproject}";
-      prefix = null;
-    }
-    else let
-      name = builtins.elemAt (builtins.attrNames subproject) 0;
-    in {
-      name = "${project.name}.${name}";
-      subprojects = builtins.elemAt (builtins.attrValues subproject) 0;
-      prefix = null;
-    };
-
-  mkProjectName = project:
-    if builtins.hasAttr "subprojects" project
-    then
-      lib.lists.flatten ([project.name]
-        ++ (builtins.map mkProjectName
-          (builtins.map (mkProject project) project.subprojects)))
-    else [project.name];
-  projects = lib.lists.flatten (builtins.map mkProjectName (import ../projects {}));
+  inherit (config.soispha.taskwarrior.projects) projects;
 
   mkFirefoxProfile = {
     name,