Firefox: Difference between revisions

imported>Coolshaurya
Add xinput2 tip
imported>Patryk27
mNo edit summary
Line 6: Line 6:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
environment.systemPackages = with pkgs; [ firefox ]
environment.systemPackages = with pkgs; [ firefox ];
</syntaxhighlight>
</syntaxhighlight>


[[Home Manager]] provides options to manage {{PAGENAME}}. You can find them below [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable the Configuration Option ''programs.firefox.enable'' entry in the Home Manager Manual].
It's also possible to install Firefox via [[Home Manager]]:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
# Home Manager when not using any additional Firefox options
# If you want to configure Firefox (consult Home Manager's docs for options):
home.packages = with pkgs; [ firefox ]
programs.firefox.enable = true;


# Home Manager programs.firefox style
# If you don't want to configure Firefox:
programs.firefox.enable = true;
home.packages = with pkgs; [ firefox ];
</syntaxhighlight>
</syntaxhighlight>
See: [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable Home Manager's manual].


=== Non-NixOS ===
=== Non-NixOS ===
Firefox can be installed by specifying the packages declaratively as stated in the [https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management manual].


==Other Editions==
<syntaxHighlight lang="console">
Nixpkgs also offers other variants of Firefox aside from the ones stated above. These may suit your needs more comfortably than vanilla Firefox.  
$ nix-env -iA nixos.firefox
</syntaxHighlight>
 
== Tips ==
 
== Other Firefox Editions ==
 
Nixpkgs also offers other variants of Firefox aside from the ones stated above - these may suit your needs more comfortably than vanilla Firefox.  


'''Note:''' The packages for the variants listed below are installed ''instead'' of the normal <code>firefox</code> package and each other, which means that you'll have to choose one among these options.
'''Note:''' The packages for the variants listed below are installed ''instead'' of the normal <code>firefox</code> package and each other, which means that you'll have to choose one among these options.


===Wayland===
=== Wayland ===
 
Users running a Wayland compositor (such as [[Sway]]) may want to use a Wayland-compatible build of Firefox. This can be achieved by replacing the <code>firefox</code> package with <code>firefox-wayland</code> instead.
Users running a Wayland compositor (such as [[Sway]]) may want to use a Wayland-compatible build of Firefox. This can be achieved by replacing the <code>firefox</code> package with <code>firefox-wayland</code> instead.


====Screen Sharing====
==== Screen Sharing ====
 
When using Firefox with Wayland, screen sharing options might be limited and require additional configuration (exact capabilities vary with different compositors).
When using Firefox with Wayland, screen sharing options might be limited and require additional configuration (exact capabilities vary with different compositors).