Skip to content

Commit

Permalink
graphical/browsers/firefox: add nix search engines
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jul 9, 2024
1 parent 8fd2764 commit d74b8c5
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions modules/home/programs/graphical/browsers/firefox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,55 @@ in
default = "DuckDuckGo";
privateDefault = "DuckDuckGo";
force = true;

engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};

"NixOs Options" = {
urls = [
{
template = "https://search.nixos.org/options";
params = [
{
name = "channel";
value = "unstable";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@no" ];
};

"NixOS Wiki" = {
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
iconUpdateURL = "https://wiki.nixos.org/favicon.png";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = [ "@nw" ];
};
};
};

settings = mkMerge [
Expand Down

0 comments on commit d74b8c5

Please sign in to comment.