MyNixOS website logo

The Firefox package to use. If state version ≥ 19.09 then this should be a wrapped Firefox package. For earlier state versions it should be an unwrapped Firefox package. Set to null to disable installing Firefox.

Note that by default Firefox will attempt to update the profiles.ini configuration file on startup which will fail if Home Manager is managing it. If you wish to use an unwrapped Firefox (e.g. from outside Nix), consider setting the environment variable MOZ_LEGACY_PROFILES=1 to disable attempts to write to the file. For macOS specifically, this should be done via /bin/launchctl setenv MOZ_LEGACY_PROFILES 1 to ensure it is set when Firefox is launched through the Finder or Dock.

Declarations
Type
null or package
Default
pkgs.firefox
Example
pkgs.firefox.override {
  # See nixpkgs' firefox/wrapper.nix to check which options you can use
  nativeMessagingHosts = [
    # Gnome shell native connector
    pkgs.gnome-browser-connector
    # Tridactyl native connector
    pkgs.tridactyl-native
  ];
}