mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 04:44:09 +09:00
20 lines
557 B
Nix
20 lines
557 B
Nix
{ lib, pkgs, ... }:
|
|
let
|
|
vesktop = pkgs.vesktop.overrideAttrs (oldAttrs: {
|
|
# Electron does not enable the PipeWire WebRTC capturer in Vesktop's
|
|
# wrapper, so Wayland compositors cannot hand screen sharing to their
|
|
# xdg-desktop-portal backend.
|
|
postFixup =
|
|
builtins.replaceStrings
|
|
[ "WaylandWindowDecorations" ]
|
|
[ "WaylandWindowDecorations,WebRTCPipeWireCapturer" ]
|
|
oldAttrs.postFixup;
|
|
});
|
|
in
|
|
lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
|
|
programs.vesktop = {
|
|
enable = true;
|
|
package = vesktop;
|
|
};
|
|
}
|