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;