Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mods.browser.firefox.enable

Enables firefox

Type: boolean

Default: false

Example: true

mods.browser.firefox.configuration

Firefox policy configuration. See https://mozilla.github.io/policy-templates/ for more information.

Type: attribute set of anything

Default:

{
  CaptivePortal = false;
  DisableFirefoxAccounts = false;
  DisableFirefoxStudies = true;
  DisablePocket = true;
  DisableTelemetry = true;
  DisplayBookmarksToolbar = "never";
  DisplayMenuBar = "default-off";
  EnableTrackingProtection = {
    Cryptomining = true;
    Fingerprinting = true;
    Locked = true;
    Value = true;
  };
  FirefoxHome = {
    Highlights = false;
    Pocket = false;
    Search = true;
    Snippets = false;
    TopSites = true;
  };
  NoDefaultBookmarks = true;
  OfferToSaveLogins = false;
  OfferToSaveLoginsDefault = false;
  PasswordManagerEnabled = false;
  UserMessaging = {
    ExtensionRecommendations = false;
    SkipOnboarding = true;
  };
}

Example: { }

mods.browser.firefox.darkreader

Whether to enable darkreader

Type: boolean

Default: true

Example: false

mods.browser.firefox.extensions

List of extensions via attrsets:

# id
# figure out the id via:
# nix run github:tupakkatapa/mozid -- 'https://addons.mozilla.org/en/firefox/addon/ublock-origin'
"uBlock0@raymondhill.net" = {
  # install url
  install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
  # method https://mozilla.github.io/policy-templates/#extensionsettings
  installation_mode = "force_installed";
};

Type: list of anything

Default:

[
  {
    "uBlock0@raymondhill.net" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/user-agent-string-switcher/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "{d7742d87-e61d-4b78-b8a1-b469842139fa}" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "firefox@ghostery.com" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/ghostery/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "CanvasBlocker@kkapsner.de" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/canvasblocker/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "jid1-KKzOGWgsW3Ao4Q@jetpack" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/i-dont-care-about-cookies/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "keepassxc-browser@keepassxc.org" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "@react-devtools" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/react-devtools/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "extension@redux.devtools" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/reduxdevtools/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
  {
    "private-relay@firefox.com" = {
      install_url = "https://addons.mozilla.org/firefox/downloads/latest/private-relay/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
]

Example:

[
  {
    "78272b6fa58f4a1abaac99321d503a20@proton.me" = {
      install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/proton-pass/latest.xpi";
      installation_mode = "normal_installed";
    };
  }
]

mods.browser.firefox.profiles

Firefox profiles

Type: list of attribute set of anything

Default:

[
  {
    name = "YOURNAME";
    value = {
      id = 0;
      isDefault = true;
    };
  }
  {
    name = "special";
    value = {
      id = 1;
      isDefault = false;
    };
  }
]

Example:

[
  {
    name = "custom";
    value = {
      extensions = {
        packages = [
          <derivation darkreader-4.9.106>
        ];
      };
      id = 0;
      isDefault = true;
    };
  }
]