browsers/firefox: add home-manager to search things
This commit is contained in:
parent
de7e10a025
commit
c1991400e5
1 changed files with 37 additions and 34 deletions
|
@ -1,11 +1,5 @@
|
||||||
{
|
{ options, config, lib, pkgs, ... }:
|
||||||
options,
|
let cfg = config.modules.desktop.browsers.firefox;
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.modules.desktop.browsers.firefox;
|
|
||||||
in {
|
in {
|
||||||
options.modules.desktop.browsers.firefox = {
|
options.modules.desktop.browsers.firefox = {
|
||||||
enable = lib.mkEnableOption false;
|
enable = lib.mkEnableOption false;
|
||||||
|
@ -38,34 +32,43 @@ in {
|
||||||
search.force = true;
|
search.force = true;
|
||||||
search.engines = {
|
search.engines = {
|
||||||
"Nix Packages" = {
|
"Nix Packages" = {
|
||||||
urls = [
|
urls = [{
|
||||||
{
|
template =
|
||||||
template = "https://search.nixos.org/packages?channel=unstable";
|
"https://search.nixos.org/packages?channel=unstable";
|
||||||
params = [
|
params = [{
|
||||||
{
|
name = "query";
|
||||||
name = "query";
|
value = "{searchTerms}";
|
||||||
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" = {
|
"Nix Options" = {
|
||||||
definedAliases = ["@nixopts"];
|
definedAliases = [ "@nixopts" ];
|
||||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
icon =
|
||||||
urls = [
|
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
{
|
urls = [{
|
||||||
template = "https://search.nixos.org/options?channel=unstable";
|
template =
|
||||||
params = [
|
"https://search.nixos.org/options?channel=unstable";
|
||||||
{
|
params = [{
|
||||||
name = "query";
|
name = "query";
|
||||||
value = "{searchTerms}";
|
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}";
|
||||||
|
}];
|
||||||
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue