You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there exists the option programs.firefox.profiles..search.engines where search engines can be configured for Firefox. It would be convenient if the search engines could be added from Opensearch description XML.
<?xml version="1.0"?>
<OpenSearchDescriptionxmlns="http://a9.com/-/spec/opensearch/1.1/"xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>NixOS packages</ShortName>
<Description>Search NixOS packages by name or description.</Description>
<InputEncoding>UTF-8</InputEncoding>
<Imagewidth="16"height="16"type="image/png">https://nixos.org/favicon.png</Image>
<Urltype="text/html"template="https://search.nixos.org/packages?query={searchTerms}"/>
<moz:SearchForm>https://search.nixos.org/packages</moz:SearchForm>
</OpenSearchDescription>
This could be translated into the following Nix expression:
programs.firefox.profiles.default.search.engines."NixOS packages"={urls=[{"https://search.nixos.org/packages?query={searchTerms}"}];iconUpdateURL="https://nixos.org/favicon.png";updateInterval=24*60*60*1000;# every day;};
I myself am a newcomer to Nix and am not fluent with the Nix language. I was able to write a proof-of-concept in TypeScript:
Description
Currently there exists the option
programs.firefox.profiles..search.engines
where search engines can be configured for Firefox. It would be convenient if the search engines could be added from Opensearch description XML.For example, the search engine at https://search.nixos.org has a
<link>
element in its<head>
The document at https://search.nixos.org/desc-search-packages.xml looks like:
This could be translated into the following Nix expression:
I myself am a newcomer to Nix and am not fluent with the Nix language. I was able to write a proof-of-concept in TypeScript:
The text was updated successfully, but these errors were encountered: