]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/firefox.nix
firefox: tweak package config
[julm/julm-nix.git] / home-manager / profiles / firefox.nix
1 { config, pkgs, lib, ... }:
2 {
3 home.packages = lib.mkIf config.programs.firefox.enable [
4 #pkgs.tor-browser-bundle-bin
5 ];
6 programs.browserpass.browsers = [ "firefox" ];
7 programs.firefox = {
8 enable = lib.mkDefault true;
9 /*
10 extensions =
11 with pkgs.nur.repos.rycee.firefox-addons; [
12 https-everywhere
13 privacy-badger
14 ];
15 */
16 package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
17 cfg.enableBrowserpass = true;
18 cfg.speechSynthesisSupport = false;
19 /*
20 nixExtensions = [
21 (pkgs.fetchFirefoxAddon {
22 name = "ublock";
23 url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-latest-an+fx.xpi";
24 sha256 = "0000000000000000000000000000000000000000000000000000";
25 })
26 (pkgs.fetchFirefoxAddon {
27 name = "decentraleyes";
28 url = "https://addons.mozilla.org/firefox/downloads/file/1671300/decentraleyes-latest-an+fx.xpi";
29 sha256 = "0000000000000000000000000000000000000000000000000000";
30 })
31 ];
32 */
33
34 /* about:policies#documentation */
35 extraPolicies = {
36 CaptivePortal = false;
37 DNSOverHTTPS = { Enabled = false; Locked = true; };
38 DisableAppUpdate = true;
39 DisableFirefoxAccounts = true;
40 DisableFirefoxStudies = true;
41 DisablePocket = true;
42 DisableTelemetry = true;
43 DontCheckDefaultBrowser = true;
44 FirefoxHome = { Pocket = false; Snippets = false; };
45 NetworkPrediction = false;
46 PromptForDownloadLocation = true;
47 SearchEngines = { PreventInstalls = true; };
48 SearchSuggestEnabled = false;
49 UserMessaging = { ExtensionRecommendations = false; SkipOnboarding = true; };
50 };
51 #extraNativeMessagingHosts = [ pkgs.passff-host ];
52 };
53 };
54 }