From 9d6dec5f80cc3e504b4f2aec6c4760d1c9b76adb Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Mon, 31 Mar 2025 20:15:01 -0400 Subject: [PATCH] Fixed screen sharing in wayland --- hosts/common/optional/hyprland/wayland.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/common/optional/hyprland/wayland.nix b/hosts/common/optional/hyprland/wayland.nix index e65e74a..03c69f8 100644 --- a/hosts/common/optional/hyprland/wayland.nix +++ b/hosts/common/optional/hyprland/wayland.nix @@ -8,4 +8,15 @@ wl-clipboard-rs wlr-randr ]; + + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + pkgs.xdg-desktop-portal-hyprland + ]; + configPackages = [ pkgs.hyprland ]; + config.common.default = "*"; + }; }