27 lines
428 B
Nix
27 lines
428 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
pipewireCfg = config.modules.pipewire;
|
|
in
|
|
{
|
|
programs = {
|
|
firefox.enable = true;
|
|
};
|
|
|
|
# Add wayland screensharing support if PipeWire is enabled
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[ ]
|
|
++ (
|
|
if pipewireCfg.enable then
|
|
[ (wrapFirefox (firefox-unwrapped.override { pipewireSupport = true; }) { }) ]
|
|
else
|
|
[ firefox ]
|
|
);
|
|
}
|