102 lines
3.0 KiB
Nix
102 lines
3.0 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
configVars,
|
|
...
|
|
}: let
|
|
user = config.home.username;
|
|
jellyfinIp = configVars.networking.addresses.jellyfin.ip;
|
|
jellyfinPort = configVars.networking.addresses.jellyfin.port;
|
|
bitcoinNodeIp = configVars.networking.addresses.bitcoin-node.ip;
|
|
mempoolPort = configVars.networking.addresses.bitcoin-node.services.mempool.port;
|
|
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 = "toolbar";
|
|
toolbar = true;
|
|
bookmarks = [
|
|
{
|
|
name = "Jellyfin";
|
|
url = "http://${jellyfinIp}:${jellyfinPort}";
|
|
}
|
|
{
|
|
name = "Mempool";
|
|
url = "http://${bitcoinNodeIp}:${toString mempoolPort}";
|
|
}
|
|
{
|
|
name = "Nixos Package Search";
|
|
url = "https://search.nixos.org/packages";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|