Patches the Electron asar bundle to inject setDisplayMediaRequestHandler with useSystemPicker: true, which routes screen capture through the native PipeWire/xdg-desktop-portal pipeline on Wayland. Based on upstream draft PR nextcloud/talk-desktop#1022. Uses the patched version in communication role.
27 lines
722 B
Nix
27 lines
722 B
Nix
{ config, lib, pkgs, globalInputs, system, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.home.roles.communication;
|
|
isLinux = pkgs.stdenv.isLinux;
|
|
in
|
|
{
|
|
options.home.roles.communication = {
|
|
enable = mkEnableOption "Enable communication and messaging applications";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [
|
|
# For logging back into google chat (cross-platform)
|
|
globalInputs.google-cookie-retrieval.packages.${system}.default
|
|
] ++ optionals isLinux [
|
|
# Linux-only communication apps (Electron apps don't build on Darwin)
|
|
pkgs.element-desktop
|
|
# Re-enabled in 25.11 after security issues were resolved
|
|
pkgs.fluffychat
|
|
pkgs.custom.nextcloud-talk-desktop
|
|
];
|
|
};
|
|
}
|