Add search engine config to firefox

This commit is contained in:
Evie Litherland-Smith 2023-06-16 08:48:18 +01:00
parent d23d2fa224
commit c3260f6a36

View file

@ -1,7 +1,40 @@
{...}: {
{pkgs, ...}: {
programs.firefox = {
enable = true;
profiles.evie = {
search = {
default = "DuckDuckGo";
force = true;
order = ["DuckDuckGo"];
engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"NixOS Wiki" = {
urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = ["@nw"];
};
};
};
settings = {
"browser.startup.homepage" = "https://nixos.org";
"browser.search.region" = "GB";