Firefox: Difference between revisions
imported>Ppom Pipewire support must be manually added to Firefox |
imported>Ppom m moved new item up |
||
| Line 114: | Line 114: | ||
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). | ||
* add Pipewire support to Firefox:<syntaxhighlight lang="nix"> | |||
environment.systemPackages = [ | |||
# Replace this | |||
pkgs.firefox | |||
# With this | |||
(pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true;}) {}) | |||
]; | |||
</syntaxhighlight> | |||
* Enable [https://pipewire.org/ PipeWire]:<syntaxhighlight lang="nix"> | * Enable [https://pipewire.org/ PipeWire]:<syntaxhighlight lang="nix"> | ||
services.pipewire.enable = true; | services.pipewire.enable = true; | ||
| Line 141: | Line 149: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Ensure that the environment variables are correctly set for the user systemd units, e.g.: | * Ensure that the environment variables are correctly set for the user systemd units, e.g.:<syntaxhighlight lang="bash"> | ||
<syntaxhighlight lang="bash"> | |||
# Sway users might achieve this by adding the following to their Sway config file | # Sway users might achieve this by adding the following to their Sway config file | ||
# This ensures all user units started after the command (not those already running) set the variables | # This ensures all user units started after the command (not those already running) set the variables | ||
exec systemctl --user import-environment | exec systemctl --user import-environment | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Configuration]] | [[Category:Configuration]] | ||
[[Category:Applications]] | [[Category:Applications]] | ||