firefox: better custom google search engine

This commit is contained in:
Primrose 2025-05-30 14:36:09 +02:00
parent e66b0d54d0
commit 817576c3fb
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 26 additions and 21 deletions

View file

@ -19,27 +19,29 @@ in {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
policies.SearchEngines = { policies = {
Default = "Google Customized"; RequestedLocales = ["fr" "en-US" "zh-TW"];
Add = [
/* SearchEngines = {
searxng doesn't Default = "Google Customized";
- have good multilingual search support Remove = ["Google"];
- use google backend on my server for some reason Add = [
*/ (let
{ withFlags = x:
Name = "searxng"; x
URLTemplate = "https://sxng.confusedcompiler.org/search?q={searchTerms}"; + mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"]
} + mkGlFlag "fr"
{ + mkHlFlag "fr";
Name = "Google Customized"; in {
URLTemplate = Name = "Google Customized";
"https://google.com/search?q={searchTerms}" Alias = "G";
+ mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"] IconURL = "https://google.com/favicon.ico";
+ mkGlFlag "fr" Description = "Your data yum yum";
+ mkHlFlag "fr"; SuggestURLTemplate = withFlags "https://suggestqueries.google.com/complete/search?q={searchTerms}";
} URLTemplate = withFlags "https://google.com/search?q={searchTerms}";
]; })
];
};
}; };
profiles = { profiles = {

View file

@ -7,6 +7,9 @@ in {
# https://mozilla.github.io/policy-templates # https://mozilla.github.io/policy-templates
policies = { policies = {
SearchEngines = {
Remove = ["Bing" "DuckDuckGo" "Qwant" "eBay"];
};
HardwareAcceleration = true; HardwareAcceleration = true;
DisableFirefoxScreenshots = false; DisableFirefoxScreenshots = false;
DisablePocket = true; DisablePocket = true;