aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/librewolf/default.nix
blob: 0c457a5df7d1d5fdbcda62b5907435a54cb9d278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  config,
  lib,
  pkgs,
  ...
}:

# Librewolf - A privacy-focused fork of Mozilla Firefox
{
  config = lib.mkIf config.programs.librewolf.enable {
    programs.librewolf = {
      package = pkgs.librewolf;
      profiles."arpit" = {
        isDefault = true;
        settings = {
          "extensions.autoDisableScopes" = 0;
          # Use default dark theme until Black gets installed
          "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
          "sidebar.verticalTabs" = true;
          "sidebar.visibility" = "always-show";
          "sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
          "layout.css.devPixelsPerPx" = 1.1;
          # Dark
          "layout.css.prefers-color-scheme.content-override" = 0;
          "browser.toolbars.bookmarks.visibility" = "newtab";
          "browser.startup.page" = 2;
          "sidebar.expandOnHover" = false;
          "sidebar.animation.enabled" = false;
          "privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
          "privacy.resistFingerprinting" = false;
          "privacy.fingerprintingProtection" = true;
          "dom.webnotifications.enabled" = false;
        };
      };
      policies = {
        ExtensionSettings = {
          "uBlock0@raymondhill.net" = {
            install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
            installation_mode = "force_installed";
            private_browsing = true;
          };
          "{9b84b6b4-07c4-4b4b-ba21-394d86f6e9ee}" = {
            install_url = "https://addons.mozilla.org/firefox/downloads/latest/black21/latest.xpi";
            installation_mode = "force_installed";
          };
          "{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
            default_area = "menupanel";
            install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
            installation_mode = "force_installed";
          };
          "addon@darkreader.org" = {
            install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
            installation_mode = "force_installed";
          };
        };
      };
    };
  };
}