21 lines
401 B
Nix
21 lines
401 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 ]);
|
|
} |