nixos-config/config/apps/firefox.nix

58 lines
2.4 KiB
Nix

{ pkgs, ... }:
{
programs.firefox = {
enable = true;
profiles.default = {
settings = {
"browser.newtabpage.activity-stream.default.sites" = "https://www.wikipedia.org/";
"browser.newtabpage.activity-stream.discoverystream.saveToPocketCard.enabled" = false;
"browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "duckduckgo";
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "duckduckgo";
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.pinned" = [{
url = "https://duckduckgo.com";
label = "@duckduckgo";
searchTopSite = true;
}];
"browser.topsites.contile.cachedTiles" = [ ];
"browser.topsites.contile.enabled" = false; # man fuck this shit, its the api that gets FF newpage shortcuts like FB, expedia, ...
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
"extensions.autoDisableScopes" = 0;
};
extensions = with pkgs.firefox-addons; [
darkreader
multi-account-containers
simple-tab-groups
ublock-origin
umatrix
];
search = {
force = true;
default = "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" ];
};
};
order = [ "DuckDuckGo" "Nix Packages" "Wikipedia" "Google" "Amazon" ];
};
};
};
}