Redefine search engines

This commit is contained in:
Jimbo 2024-11-18 17:14:02 -05:00
parent f5831262b3
commit 79310cc53a
6 changed files with 71 additions and 15 deletions

View file

@ -41,12 +41,18 @@ in {
];
commonSearch = {
force = true;
default = "Google";
default = "Ecosia";
order = [
"Ecosia"
"NixPKGs"
"MyNixOS"
"YouTube"
];
engines = {
"Google" = {
"Ecosia" = {
urls = [
{
template = "https://www.google.com/search";
template = "https://www.ecosia.org/search";
params = [
{
name = "q";
@ -55,7 +61,7 @@ in {
];
}
];
definedAliases = [ "@g" ];
definedAliases = [ "@e" ];
};
"NixPKGs" = {
urls = [
@ -76,6 +82,34 @@ in {
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@pkgs" ];
};
"MyNixOS" = {
urls = [
{
template = "https://mynixos.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@my" ];
};
"YouTube" = {
urls = [
{
template = "https://www.youtube.com/results";
params = [
{
name = "search_query";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@y" ];
};
};
};
commonSettings = {
@ -91,6 +125,8 @@ in {
"browser.toolbars.bookmarks.visibility" = "never";
"browser.contentblocking.category" = "strict";
"browser.helperApps.deleteTempFileOnExit" = true;
"browser.newtabpage.enabled" = false;
"browser.search.separatePrivateDefault" = false;
"extensions.pocket.enabled" = false;
"extensions.autoDisableScopes" = 0;
@ -98,19 +134,34 @@ in {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"toolkit.tabbox.switchByScrolling" = true;
"privacy.resistFingerprinting" = true;
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
"privacy.fingerprintingProtection" = true;
"privacy.donottrackheader.enabled" = true;
"privacy.userContext.newTabContainerOnLeftClick.enabled" = true;
"privacy.globalprivacycontrol.enabled" = true;
"privacy.globalprivacycontrol.functionality.enabled" = true;
"privacy.clearOnShutdown.history" = true;
"privacy.clearOnShutdown.cookies" = false;
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
"privacy.clearOnShutdown_v2.historyFormDataAndDownloads" = true;
"places.history.enabled" = false;
"urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com";
"urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com";
"media.hardware-video-decoding.force-enabled" = true;
"network.trr.mode" = 3;
"network.trr.uri" = "https://doh.libredns.gr/noads";
"network.http.referer.XOriginPolicy" = true;
"network.cookie.sameSite.noneRequiresSecure" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"media.hardware-video-decoding.force-enabled" = true;
"gfx.webrender.all" = true;
"gfx.x11-egl.force-enabled" = true;
"svg.context-properties.content.enabled" = true;
"device.sensors.motion.enabled" = false;
"gnomeTheme.hideSingleTab" = true;