diff --git a/modules/gui.nix b/modules/gui.nix index 8c15987..3da3126 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -10,4 +10,15 @@ lib.mkIf config.sbruder.gui.enable { # steam (and other high quality software) still ships 32 bit binaries hardware.opengl.driSupport32Bit = lib.mkIf pkgs.stdenv.isx86_64 true; + + # screen sharing + services.pipewire.enable = true; + xdg.portal = { + enable = true; + gtkUsePortal = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + xdg-desktop-portal-wlr + ]; + }; } diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index d04b907..c26ef91 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -237,6 +237,7 @@ lib.mkIf config.sbruder.gui.enable { export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export SDL_VIDEODRIVER=wayland export WLR_NO_HARDWARE_CURSORS=1 + export XDG_CURRENT_DESKTOP=sway export _JAVA_AWT_WM_NONREPARENTING=1 ''; };