mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
firefox: better custom google search engine
This commit is contained in:
parent
e66b0d54d0
commit
817576c3fb
2 changed files with 26 additions and 21 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue