From 77ee9a2d0c6fe6c58d290687e12dff408d566e9c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 09:46:07 +0100 Subject: [PATCH] WIP: screen sharing --- modules/gui.nix | 11 +++++++++++ users/simon/modules/sway.nix | 1 + 2 files changed, 12 insertions(+) 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 ''; };