Firefox: Difference between revisions

imported>Equirosa
m remove unnecessary apostrophe: offer's -> offers
imported>Kvtb
Firefox without pulseaudio
Line 30: Line 30:
Mozilla themselves provide official pre-built Firefox binaries. It is possible to install these packages through Nix by using the <code>-bin</code> suffix with the package. So you'd use <code>firefox-bin</code> instead of the normal package. This will download the binary from Mozilla's servers and install it on your system.
Mozilla themselves provide official pre-built Firefox binaries. It is possible to install these packages through Nix by using the <code>-bin</code> suffix with the package. So you'd use <code>firefox-bin</code> instead of the normal package. This will download the binary from Mozilla's servers and install it on your system.
== FAQ ==
== FAQ ==
=== How to run Firefox without pulseaudio and still get audio output? ===
Replace libpulseaudio by libpressureaudio, which uses apulse to emulate pulseaudio but uses ALSA directy. So, you don't need to install/enable pulse audio.
<syntaxhighlight lang="nix">
{ pkgs ? import <nixpkgs> {} }:
(pkgs.wrapFirefox.override {libpulseaudio = pkgs.libpressureaudio;}) pkgs.firefox-unwrapped {}
</syntaxhighlight>
and installing it with <code>nix-env -f firefox.nix -i</code>.
When using [[Home Manager]], add the following to your configuration:
<syntaxhighlight lang="nix">
programs.firefox.package = (pkgs.wrapFirefox.override { libpulseaudio = pkgs.libpressureaudio; }) pkgs.firefox-unwrapped { };
</syntaxhighlight>


=== I want Firefox, what is Nightly? ===
=== I want Firefox, what is Nightly? ===