nix/common/dotfiles/firefox.nix

80 lines
2.9 KiB
Nix
Raw Normal View History

2023-07-02 08:58:48 +02:00
{ config, pkgs, ... }: {
2023-07-01 15:24:37 +02:00
programs.firefox = {
enable = true;
2023-07-02 02:17:53 +02:00
2023-07-01 15:24:37 +02:00
profiles.default = {
2023-07-01 16:10:50 +02:00
isDefault = true;
name = "default";
2023-07-01 15:24:37 +02:00
settings = {
2023-07-02 02:17:53 +02:00
"extension.pocket.enabled" = "false";
"toolkit.telemetry.pioneer-new-studies-availble" = "false";
"datareporting.healthreport.uploadEnabled" = "false";
"datareporting.healthreport.infoURL" = "null";
"toolkit.telemetry.server" = "null";
"browser.newtabpage.activity-stream.feeds.telemetry" = "false";
"browser.newtabpage.activity-stream.telemetry" = "false";
"browser.ping-centre.telemetry" = "false";
"toolkit.telemetry.enabled" = "false";
2023-07-01 17:25:54 +02:00
"toolkit.telemetry.firstShutdownPing.enabled" = "false";
"toolkit.telemetry.hybridContent.enabled" = "false";
"toolkit.telemetry.newProfilePing.enabled" = "false";
"toolkit.telemetry.shutdownPingSender.enabled" = "false";
"toolkit.telemetry.updatePing.enabled" = "false";
"toolkit.telemetry.reportingpolicy.firstRun" = "false";
"toolkit.telemetry.unified" = "false";
"toolkit.telemetry.archive.enabled" = "false";
"devtools.onboarding.telemetry.logged" = "false";
"toolkit.telemetry.bhrPing.enabled" = "false";
"datareporting.policy.dataSubmissionEnabled" = "false";
"datareporting.sessions.current.clean" = "true";
2023-07-01 15:24:37 +02:00
"browser.startup.homepage" = "https://searx.sysctl.io";
"browser.search.region" = "US";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "en-US";
"general.useragent.locale" = "en-US";
2023-07-01 17:25:54 +02:00
"browser.bookmarks.showMobileBookmarks" = "false";
"browser.newtabpage.enabled" = "false";
"services.sync.prefs.sync.browser.newtabpage.enabled" = "false";
2023-07-01 15:24:37 +02:00
};
2023-07-02 02:47:55 +02:00
2023-07-02 08:50:35 +02:00
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
2023-07-02 07:12:03 +02:00
privacy-badger
2023-07-02 09:14:43 +02:00
decentraleyes
darkreader
ublock-origin
bypass-paywals-clean
privacy-redirect
cleanurls
demodal
2023-07-02 07:12:03 +02:00
];
2023-07-02 07:16:52 +02:00
2023-07-01 16:10:50 +02:00
search.default = "DuckDuckGo";
2023-07-01 15:24:37 +02:00
search.force = true;
search.order = [
"DuckDuckGo"
];
search.engines = {
2023-07-01 15:25:57 +02:00
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
2023-07-01 15:24:37 +02:00
2023-07-01 15:25:57 +02:00
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
2023-07-01 15:24:37 +02:00
2023-07-01 15:25:57 +02:00
"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" ];
};
2023-07-01 15:24:37 +02:00
};
};
2023-07-01 15:25:57 +02:00
};
2023-07-01 16:10:50 +02:00
}