82 lines
2.4 KiB
Nix
82 lines
2.4 KiB
Nix
{ pkgs, config, ... }:
|
|
let
|
|
user = config.home.username;
|
|
in
|
|
{
|
|
programs.firefox = {
|
|
enable = true;
|
|
profiles.${user} = {
|
|
search = {
|
|
force = true;
|
|
default = "Searx";
|
|
order = [ "Searx" "DuckDuckGo" ];
|
|
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 Wiki" = {
|
|
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
|
definedAliases = [ "@nw" ];
|
|
};
|
|
"Searx" = {
|
|
urls = [{ template = "http://10.0.10.35:8855/?q={searchTerms}"; }];
|
|
iconUpdateURL = "https://docs.searxng.org/_static/searxng-wordmark.svg";
|
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
|
definedAliases = [ "@searx" ];
|
|
};
|
|
"Bing".metaData.hidden = true;
|
|
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
|
};
|
|
};
|
|
|
|
bookmarks = [
|
|
{
|
|
name = "wikipedia";
|
|
tags = [ "wiki" ];
|
|
keyword = "wiki";
|
|
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
|
}
|
|
{
|
|
name = "bitlab21";
|
|
tags = [ "bitcoin" ];
|
|
keyword = "bitcoin";
|
|
url = "https://bitlab21.com";
|
|
}
|
|
];
|
|
|
|
settings = {
|
|
"dom.security.https_only_mode" = true;
|
|
"browser.download.panel.shown" = true;
|
|
"identity.fxaccounts.enabled" = false;
|
|
"signon.rememberSignons" = false;
|
|
"browser.compactmode.show" = true;
|
|
"browser.startup.homepage" = "http://10.0.10.35:8855";
|
|
"browser.search.defaultenginename" = "Searx";
|
|
"browser.search.order.1" = "Searx";
|
|
};
|
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
ublock-origin
|
|
return-youtube-dislikes
|
|
bitwarden
|
|
sponsorblock
|
|
darkreader
|
|
vimium
|
|
privacy-badger
|
|
zotero-connector
|
|
];
|
|
|
|
};
|
|
};
|
|
}
|