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]] | It's also possible to install Firefox via [[Home Manager]]: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# Home Manager | # If you want to configure Firefox (consult Home Manager's docs for options): | ||
programs.firefox.enable = true; | |||
# | # If you don't want to configure Firefox: | ||
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 === | ||
==Other Editions== | <syntaxHighlight lang="console"> | ||
Nixpkgs also offers other variants of Firefox aside from the ones stated above | $ 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). | ||