forked from mirrors_public/oddlama_nix-config
feat: add kagi search engine
This commit is contained in:
parent
5c7f48dfce
commit
7042ea9ecc
1 changed files with 41 additions and 2 deletions
|
@ -74,6 +74,8 @@ in {
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
# Why the fuck can my search window make bell sounds
|
# Why the fuck can my search window make bell sounds
|
||||||
"accessibility.typeaheadfind.enablesound" = false;
|
"accessibility.typeaheadfind.enablesound" = false;
|
||||||
|
# Why the fuck can my search window make bell sounds
|
||||||
|
"general.autoScroll" = true;
|
||||||
|
|
||||||
# Hardware acceleration
|
# Hardware acceleration
|
||||||
# See https://github.com/elFarto/nvidia-vaapi-driver?tab=readme-ov-file#firefox
|
# See https://github.com/elFarto/nvidia-vaapi-driver?tab=readme-ov-file#firefox
|
||||||
|
@ -155,14 +157,31 @@ in {
|
||||||
|
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
default = "DuckDuckGo";
|
default = "Kagi";
|
||||||
order = ["DuckDuckGo" "Youtube" "Nix Packages" "GitHub" "HackerNews"];
|
order = ["Kagi" "DuckDuckGo" "Youtube" "NixOS Options" "Nix Packages" "GitHub" "HackerNews"];
|
||||||
|
|
||||||
engines = {
|
engines = {
|
||||||
"Bing".metaData.hidden = true;
|
"Bing".metaData.hidden = true;
|
||||||
"Amazon.com".metaData.hidden = true;
|
"Amazon.com".metaData.hidden = true;
|
||||||
"Google".metaData.hidden = true;
|
"Google".metaData.hidden = true;
|
||||||
|
|
||||||
|
"Kagi" = {
|
||||||
|
iconUpdateURL = "https://kagi.com/favicon.ico";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000;
|
||||||
|
definedAliases = ["@k"];
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
template = "https://kagi.com/search";
|
||||||
|
params = [
|
||||||
|
{
|
||||||
|
name = "q";
|
||||||
|
value = "{searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"YouTube" = {
|
"YouTube" = {
|
||||||
iconUpdateURL = "https://youtube.com/favicon.ico";
|
iconUpdateURL = "https://youtube.com/favicon.ico";
|
||||||
updateInterval = 24 * 60 * 60 * 1000;
|
updateInterval = 24 * 60 * 60 * 1000;
|
||||||
|
@ -200,6 +219,26 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = ["@no"];
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{
|
||||||
|
name = "channel";
|
||||||
|
value = "unstable";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "query";
|
||||||
|
value = "{searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"GitHub" = {
|
"GitHub" = {
|
||||||
iconUpdateURL = "https://github.com/favicon.ico";
|
iconUpdateURL = "https://github.com/favicon.ico";
|
||||||
updateInterval = 24 * 60 * 60 * 1000;
|
updateInterval = 24 * 60 * 60 * 1000;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue