2023-07-02 08:58:48 +02:00
|
|
|
{ config, pkgs, ... }: {
|
2023-07-02 15:31:14 +02:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/21244
|
2023-07-02 15:30:30 +02:00
|
|
|
pkgs.firefox.override (args: args // {
|
|
|
|
extraPrefs = ''
|
|
|
|
lockPref("extension.pocket.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.pioneer-new-studies-availble", false);
|
|
|
|
lockPref("datareporting.healthreport.uploadEnabled", false);
|
|
|
|
lockPref("datareporting.healthreport.infoURL", null);
|
|
|
|
lockPref("toolkit.telemetry.server", null);
|
|
|
|
lockPref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
|
|
|
lockPref("browser.newtabpage.activity-stream.telemetry", false);
|
|
|
|
lockPref("browser.ping-centre.telemetry", false);
|
|
|
|
lockPref("toolkit.telemetry.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.firstShutdownPing.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.hybridContent.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.newProfilePing.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.shutdownPingSender.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.updatePing.enabled", false);
|
|
|
|
lockPref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
|
|
|
lockPref("toolkit.telemetry.unified", false);
|
|
|
|
lockPref("toolkit.telemetry.archive.enabled", false);
|
|
|
|
lockPref("devtools.onboarding.telemetry.logged", false);
|
|
|
|
lockPref("toolkit.telemetry.bhrPing.enabled", false);
|
|
|
|
lockPref("datareporting.policy.dataSubmissionEnabled", false);
|
|
|
|
lockPref("datareporting.sessions.current.clean", true);
|
|
|
|
lockPref("browser.startup.homepage", https://dir.sysctl.io);
|
|
|
|
lockPref("browser.search.region", US);
|
|
|
|
lockPref("browser.search.isUS", false;
|
|
|
|
lockPref("distribution.searchplugins.defaultLocale", en-US);
|
|
|
|
lockPref("general.useragent.locale", en-US);
|
|
|
|
lockPref("browser.bookmarks.showMobileBookmarks", false);
|
|
|
|
lockPref("browser.newtabpage.enabled", false);
|
|
|
|
lockPref("services.sync.prefs.sync.browser.newtabpage.enabled", false);
|
|
|
|
''
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.firefox = {
|
2023-07-01 15:24:37 +02:00
|
|
|
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-02 02:47:55 +02:00
|
|
|
|
2023-07-02 09:39:12 +02:00
|
|
|
# https://nur.nix-community.org/repos/rycee/
|
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
|
|
|
|
privacy-redirect
|
2023-07-02 09:16:21 +02:00
|
|
|
link-cleaner
|
2023-07-02 09:14:43 +02:00
|
|
|
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;
|
2023-07-02 11:14:32 +02:00
|
|
|
search.order = [ "DuckDuckGo" ];
|
2023-07-01 15:24:37 +02:00
|
|
|
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
|
|
|
}
|