fix(firefox): fix search engine icons and add some more
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
be6f1c6eea
commit
7f7fe39e8d
1 changed files with 80 additions and 67 deletions
|
@ -6,7 +6,7 @@ self: {
|
||||||
}: let
|
}: let
|
||||||
inherit (self.scopedPackages.${pkgs.system}) firefoxAddons;
|
inherit (self.scopedPackages.${pkgs.system}) firefoxAddons;
|
||||||
|
|
||||||
inherit (lib) attrsToList attrValues mkIf mkOption types;
|
inherit (lib) attrsToList attrValues mkIf mkOption singleton types;
|
||||||
|
|
||||||
cfg = config.programs.firefox;
|
cfg = config.programs.firefox;
|
||||||
|
|
||||||
|
@ -113,104 +113,115 @@ in {
|
||||||
force = true;
|
force = true;
|
||||||
engines = {
|
engines = {
|
||||||
"SearXNG" = {
|
"SearXNG" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://search.nelim.org/search";
|
||||||
template = "https://search.nelim.org/search?q={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"q" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://search.nelim.org/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://search.nelim.org/favicon.ico";
|
||||||
definedAliases = ["@s"];
|
definedAliases = ["@s"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"Github Search Code" = {
|
||||||
|
urls = singleton {
|
||||||
|
template = "https://github.com/search";
|
||||||
|
params = attrsToList {
|
||||||
|
"type" = "code";
|
||||||
|
"q" = "NOT is:fork {searchTerms}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
iconMapObj."16" = "https://icon.horse/icon/github.com";
|
||||||
|
definedAliases = ["@gs"];
|
||||||
|
};
|
||||||
|
|
||||||
"Github Nix Code" = {
|
"Github Nix Code" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://github.com/search";
|
||||||
template = "https://github.com/search";
|
params = attrsToList {
|
||||||
params = attrsToList {
|
"type" = "code";
|
||||||
"type" = "code";
|
"q" = "lang:Nix NOT is:fork {searchTerms}";
|
||||||
"q" = "lang:nix NOT is:fork {searchTerms}";
|
};
|
||||||
};
|
};
|
||||||
}
|
iconMapObj."16" = "https://icon.horse/icon/github.com";
|
||||||
];
|
|
||||||
iconUpdateURL = "https://github.com/favicon.ico";
|
|
||||||
definedAliases = ["@gn"];
|
definedAliases = ["@gn"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"Nixpkgs" = {
|
"Nixpkgs" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://github.com/search";
|
||||||
template = "https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20{searchTerms}&type=code";
|
params = attrsToList {
|
||||||
}
|
"type" = "code";
|
||||||
];
|
"q" = "repo:NixOS/nixpkgs {searchTerms}";
|
||||||
iconUpdateURL = "https://github.githubassets.com/favicons/favicon.png";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
};
|
||||||
|
iconMapObj."16" = "https://icon.horse/icon/github.com";
|
||||||
definedAliases = ["@pkgs"];
|
definedAliases = ["@pkgs"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"NixOS Wiki" = {
|
"NixOS Wiki" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://wiki.nixos.org/w/index.php";
|
||||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"search" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://wiki.nixos.org/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://wiki.nixos.org/favicon.ico";
|
||||||
definedAliases = ["@nw"];
|
definedAliases = ["@nw"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"MyNixos" = {
|
"MyNixos" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://mynixos.com/search";
|
||||||
template = "https://mynixos.com/search?q={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"q" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://mynixos.com/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://mynixos.com/favicon.ico";
|
||||||
definedAliases = ["@mn"];
|
definedAliases = ["@mn"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"Noogle" = {
|
"Noogle" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://noogle.dev/q";
|
||||||
template = "https://noogle.dev/q?term={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"term" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://noogle.dev/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://noogle.dev/favicon.ico";
|
||||||
definedAliases = ["@ng"];
|
definedAliases = ["@ng"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"Firefox Add-ons" = {
|
"Firefox Add-ons" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://addons.mozilla.org/en-US/firefox/search";
|
||||||
template = "https://addons.mozilla.org/en-US/firefox/search/?q={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"q" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://addons.mozilla.org/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://addons.mozilla.org/favicon.ico";
|
||||||
definedAliases = ["@fa"];
|
definedAliases = ["@fa"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"ProtonDB" = {
|
"ProtonDB" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://www.protondb.com/search";
|
||||||
template = "https://www.protondb.com/search?q={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"q" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://www.protondb.com/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://www.protondb.com/favicon.ico";
|
||||||
definedAliases = ["@pdb"];
|
definedAliases = ["@pdb"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"YouTube" = {
|
"YouTube" = {
|
||||||
urls = [
|
urls = singleton {
|
||||||
{
|
template = "https://www.youtube.com/results";
|
||||||
template = "https://www.youtube.com/results?search_query={searchTerms}";
|
params = attrsToList {
|
||||||
}
|
"search_query" = "{searchTerms}";
|
||||||
];
|
};
|
||||||
iconUpdateURL = "https://www.youtube.com/favicon.ico";
|
};
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
iconMapObj."16" = "https://www.youtube.com/favicon.ico";
|
||||||
definedAliases = ["@yt" "@youtube"];
|
definedAliases = ["@yt" "@youtube"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -218,11 +229,13 @@ in {
|
||||||
"Google".metaData.hidden = true;
|
"Google".metaData.hidden = true;
|
||||||
"eBay".metaData.hidden = true;
|
"eBay".metaData.hidden = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
order = [
|
order = [
|
||||||
"SearXNG"
|
"SearXNG"
|
||||||
"DuckDuckGo"
|
"DuckDuckGo"
|
||||||
"MyNixos"
|
"MyNixos"
|
||||||
"NixOS Wiki"
|
"NixOS Wiki"
|
||||||
|
"Github Search Code"
|
||||||
"Github Nix Code"
|
"Github Nix Code"
|
||||||
"Nixpkgs"
|
"Nixpkgs"
|
||||||
"Noogle"
|
"Noogle"
|
||||||
|
|
Loading…
Add table
Reference in a new issue