Compare commits
No commits in common. "edfab2cfe9a799d6fb6798d9ca42add455146a02" and "d21c7143eea901f4f97cc5c67e312f59bd1bcbc0" have entirely different histories.
edfab2cfe9
...
d21c7143ee
|
@ -136,9 +136,9 @@
|
||||||
rules =
|
rules =
|
||||||
let
|
let
|
||||||
defaultUse = [
|
defaultUse = [
|
||||||
"text"
|
|
||||||
"archive"
|
"archive"
|
||||||
"archive_fast"
|
"archive_fast"
|
||||||
|
"text"
|
||||||
"hex"
|
"hex"
|
||||||
];
|
];
|
||||||
mkMime = mime: use: {
|
mkMime = mime: use: {
|
||||||
|
|
|
@ -28,15 +28,6 @@ let
|
||||||
# "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
|
# "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
|
||||||
};
|
};
|
||||||
|
|
||||||
searchEngines = [
|
|
||||||
(mkSearchEngine "s" "SearX" "https://search.voronind.com/search?q={searchTerms}")
|
|
||||||
(mkSearchEngine "ru" "RuTracker" "https://rutracker.org/forum/tracker.php?nm={searchTerms}")
|
|
||||||
(mkSearchEngine "re" "Reddit" "https://www.reddit.com/search/?q={searchTerms}")
|
|
||||||
(mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}")
|
|
||||||
(mkSearchEngine "np" "NixOS Packages" "https://search.nixos.org/packages?query={searchTerms}")
|
|
||||||
(mkSearchEngine "so" "Stack Overflow" "https://stackoverflow.com/search?tab=votes&q={searchTerms}")
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
// Bookmarks.
|
// Bookmarks.
|
||||||
user_pref("browser.microsummary.enabled", true);
|
user_pref("browser.microsummary.enabled", true);
|
||||||
|
@ -141,12 +132,6 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
mkBookmark = name: url: { inherit name url; };
|
mkBookmark = name: url: { inherit name url; };
|
||||||
|
|
||||||
mkSearchEngine = Alias: Description: URLTemplate: {
|
|
||||||
inherit Alias Description URLTemplate;
|
|
||||||
Method = "GET";
|
|
||||||
Name = Description;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -167,9 +152,52 @@ in
|
||||||
} // extensions;
|
} // extensions;
|
||||||
# NOTE: `firefox-esr` edition is required to change search engines.
|
# NOTE: `firefox-esr` edition is required to change search engines.
|
||||||
SearchEngines = {
|
SearchEngines = {
|
||||||
Add = searchEngines;
|
|
||||||
Default = "Searx";
|
Default = "Searx";
|
||||||
PreventInstalls = true;
|
PreventInstalls = true;
|
||||||
|
Add = [
|
||||||
|
{
|
||||||
|
Alias = "s";
|
||||||
|
Description = "SearX";
|
||||||
|
IconURL = "https://search.voronind.com/favicon.ico";
|
||||||
|
Method = "POST";
|
||||||
|
Name = "Searx";
|
||||||
|
PostData = "q={searchTerms}";
|
||||||
|
# SuggestURLTemplate = "https://search.voronind.com/autocomplete?q={searchTerms}";
|
||||||
|
URLTemplate = "https://search.voronind.com/search?q={searchTerms}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Alias = "ru";
|
||||||
|
Description = "RuTracker";
|
||||||
|
IconURL = "https://rutracker.org/favicon.ico";
|
||||||
|
Method = "GET";
|
||||||
|
Name = "RuTracker";
|
||||||
|
URLTemplate = "https://rutracker.org/forum/tracker.php?nm={searchTerms}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Alias = "re";
|
||||||
|
Description = "Reddit";
|
||||||
|
IconURL = "https://www.reddit.com/favicon.ico";
|
||||||
|
Method = "GET";
|
||||||
|
Name = "Reddit";
|
||||||
|
URLTemplate = "https://www.reddit.com/search/?q={searchTerms}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Alias = "no";
|
||||||
|
Description = "NixOS Option";
|
||||||
|
IconURL = "https://search.nixos.org/favicon.ico";
|
||||||
|
Method = "GET";
|
||||||
|
Name = "NixOS Option";
|
||||||
|
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Alias = "np";
|
||||||
|
Description = "NixOS Package";
|
||||||
|
IconURL = "https://search.nixos.org/favicon.ico";
|
||||||
|
Method = "GET";
|
||||||
|
Name = "NixOS Package";
|
||||||
|
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
Remove = [
|
Remove = [
|
||||||
"Bing"
|
"Bing"
|
||||||
"DuckDuckGo"
|
"DuckDuckGo"
|
||||||
|
|
Loading…
Reference in a new issue