blob: ff2d49d078339597b218bbf94f529f896bf97a69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
extensions,
userChrome,
extraConfig,
bookmarks,
search,
profile_size,
lib,
config,
...
}: let
inherit (config.soispha.taskwarrior.projects) projects;
mkFirefoxProfile = {
name,
id,
}: {
inherit name;
value = {
isDefault = false;
inherit name id extensions userChrome search bookmarks extraConfig;
};
};
projects_id =
lib.imap0 (id: project: {
name = project;
id = id + profile_size;
})
projects;
firefoxProfiles = builtins.listToAttrs (builtins.map mkFirefoxProfile projects_id);
in
firefoxProfiles
|