Hello, I recently found a fix for screensharing on Slack with Wayland/Pipewire by running slack --enable-features=WebRTCPipeWireCapturer
and I’m wondering if I can set this as the default in my configuration.nix
. Currently when I run the command I have to keep the terminal open to keep the instance of Slack that uses Pipewire running. It would be nice to just have Slack use that as default. Thanks!
Adding this in place of slack
in my environment.systemPackages
fixed it
(slack.overrideAttrs
(default: {
installPhase = default.installPhase + ''
rm $out/bin/slack
makeWrapper $out/lib/slack/slack $out/bin/slack \
--prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
--prefix PATH : ${lib.makeBinPath [pkgs.xdg-utils]} \
--add-flags "--enable-features=WebRTCPipeWireCapturer"
'';
})
)
also needed to add lib
to the top of the file { config, lib, pkgs, ... }: