home/programs/browsers/firefox: update search engines

This commit is contained in:
Anthony Rodriguez 2024-11-07 13:25:20 +01:00
parent 39297e9fbb
commit d920e7e206
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 34 additions and 62 deletions

View file

@ -135,49 +135,24 @@ in {
"type" = "application/x-suggestions+json"; "type" = "application/x-suggestions+json";
} }
]; ];
iconUpdateURL = "https://search.nezia.dev/favicon.ico"; };
"MyNixOS" = {
urls = [{template = "https://mynixos.com/search?q={searchTerms}";}];
iconUpdateURL = "https://mynixos.com/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000; updateInterval = 24 * 60 * 60 * 1000;
definedAliases = ["@s"]; definedAliases = ["@nx"];
};
"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 Wiki" = {
urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}];
iconUpdateURL = "https://wiki.nixos.org/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = ["@nw"];
};
"NixOS Options" = {
urls = [{template = "https://search.nixos.org/options?channel=unstable&type=packages&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@no"];
}; };
"Noogle" = { "Noogle" = {
urls = [{template = "https://noogle.dev/q?term={searchTerms}";}]; urls = [{template = "https://noogle.dev/q?term={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@ng"]; definedAliases = ["@ng"];
}; };
"Home Manager" = { "GitHub Nix" = {
urls = [{template = "https://home-manager-options.extranix.com/?release=master&query={searchTerms}";}]; # https://github.com/search?q=language%3Anix+NOT+is%3Afork+programs.neovim&type=code
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; urls = [{template = "https://github.com/search?q=language:nix NOT is:fork {searchTerms}&type=code";}];
definedAliases = ["@hm"]; iconUpdateURL = "https://github.com/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = ["@ghn"];
}; };
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias "Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
}; };

View file

@ -1,43 +1,40 @@
{ {specialArgs, ...}: let
self, system = ../../system;
specialArgs, home = ../../home;
...
}: let
mod = "${self}/system";
in { in {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./modules ./modules
"${mod}" "${system}"
"${mod}/core/lanzaboote.nix" "${system}/core/lanzaboote.nix"
"${mod}/hardware/fprintd.nix" "${system}/hardware/fprintd.nix"
"${mod}/services/power.nix" "${system}/services/power.nix"
"${mod}/services/brightness.nix" "${system}/services/brightness.nix"
"${mod}/services/logind.nix" "${system}/services/logind.nix"
"${mod}/services/greetd.nix" "${system}/services/greetd.nix"
"${mod}/services/kanata.nix" "${system}/services/kanata.nix"
"${mod}/programs/niri" "${system}/programs/niri"
"${mod}/services/gnome.nix" "${system}/services/gnome.nix"
"${mod}/services/mail.nix" "${system}/services/mail.nix"
]; ];
home-manager = { home-manager = {
users.nezia.imports = [ users.nezia.imports = [
"${self}/home" "${home}"
"${self}/home/services/udiskie.nix" "${home}/services/udiskie.nix"
"${self}/home/programs/niri" "${home}/programs/niri"
"${self}/home/programs/ags" "${home}/programs/ags"
"${self}/home/programs/fuzzel.nix" "${home}/programs/fuzzel.nix"
"${self}/home/programs/swaybg.nix" "${home}/programs/swaybg.nix"
"${self}/home/programs/swaylock.nix" "${home}/programs/swaylock.nix"
"${self}/home/programs/swayidle.nix" "${home}/programs/swayidle.nix"
"${self}/home/terminal/emulators/foot.nix" "${home}/terminal/emulators/foot.nix"
]; ];
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };