Skip to content

Commit

Permalink
thunderbird: support setting search engines
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau committed Oct 12, 2024
1 parent 4187b3c commit d58208f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/programs/thunderbird.nix
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,20 @@ in {
Extra preferences to add to {file}`user.js`.
'';
};

search = mkOption {
type = types.submodule (args:
import ./firefox/profiles/search.nix {
inherit (args) config;
inherit lib pkgs;
appName = "Thunderbird";
modulePath =
[ "programs" "thunderbird" "profiles" name "search" ];
profilePath = name;
});
default = { };
description = "Declarative search engine configuration.";
};
};
}));
description = "Attribute set of Thunderbird profiles.";
Expand Down Expand Up @@ -393,6 +407,12 @@ in {
] ++ (map (a: toThunderbirdAccount a profile) accounts)))
profile.extraConfig;
};

"${thunderbirdProfilesPath}/${name}/search.json.mozlz4" = {
enable = profile.search.enable;
force = profile.search.force;
source = profile.search.file;
};
}));
};
}

0 comments on commit d58208f

Please sign in to comment.