pinwheel: Add support for screensharing with hyprland

This commit is contained in:
Alexander Heldt
2023-12-11 14:47:35 +01:00
parent bd2293d4be
commit 5485b6b7e6

View File

@@ -36,6 +36,8 @@ in
workspace = 8, monitor:eDP-1 workspace = 8, monitor:eDP-1
workspace = 9, monitor:eDP-1 workspace = 9, monitor:eDP-1
workspace = 10, monitor:eDP-1 workspace = 10, monitor:eDP-1
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
''; '';
settings = { 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 # openGL is needed for wayland/hyprland
hardware.opengl.enable = true; hardware.opengl.enable = true;