From 5485b6b7e660ee6db6a2125c2a40e687228d4073 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 11 Dec 2023 14:47:35 +0100 Subject: [PATCH] pinwheel: Add support for screensharing with `hyprland` --- hosts/pinwheel/modules/hyprland/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/pinwheel/modules/hyprland/default.nix b/hosts/pinwheel/modules/hyprland/default.nix index 7f0f6ce..3815ee6 100644 --- a/hosts/pinwheel/modules/hyprland/default.nix +++ b/hosts/pinwheel/modules/hyprland/default.nix @@ -36,6 +36,8 @@ in workspace = 8, monitor:eDP-1 workspace = 9, monitor:eDP-1 workspace = 10, monitor:eDP-1 + + exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP ''; settings = { @@ -141,6 +143,17 @@ in ]; }; + + # The XDG portal is needed for screen sharing + xdg.portal = { + enable = true; + + # override "trace: warning: xdg-desktop-portal 1.17 reworked how portal implementations are loaded ..." + config.common.default = "*"; + + extraPortals = [ pkgs.xdg-desktop-portal-hyprland ]; + }; + # openGL is needed for wayland/hyprland hardware.opengl.enable = true;