browsers/firefox: add home-manager to search things

This commit is contained in:
Sakooooo 2024-10-15 12:29:51 +04:00
parent de7e10a025
commit c1991400e5
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,11 +1,5 @@
{
options,
config,
lib,
pkgs,
...
}: let
cfg = config.modules.desktop.browsers.firefox;
{ options, config, lib, pkgs, ... }:
let cfg = config.modules.desktop.browsers.firefox;
in {
options.modules.desktop.browsers.firefox = {
enable = lib.mkEnableOption false;
@ -38,34 +32,43 @@ in {
search.force = true;
search.engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages?channel=unstable";
params = [
{
urls = [{
template =
"https://search.nixos.org/packages?channel=unstable";
params = [{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@nixpkgs"];
}];
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@nixpkgs" ];
};
"Nix Options" = {
definedAliases = ["@nixopts"];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
urls = [
{
template = "https://search.nixos.org/options?channel=unstable";
params = [
{
definedAliases = [ "@nixopts" ];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
urls = [{
template =
"https://search.nixos.org/options?channel=unstable";
params = [{
name = "query";
value = "{searchTerms}";
}
];
}
];
}];
}];
};
"Home Manager Options" = {
definedAliases = [ "@homemgropts" ];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
urls = [{
template =
"https://home-manager-options.extranix.com/release=master";
params = [{
name = "query";
value = "{searchTerms}";
}];
}];
};
};
};