From 33f30573f91de05dd5acf930f0d8c2b9540c6e44 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 4 Sep 2024 00:31:00 +0300 Subject: fix(tazjin/nixos): fix wayland screen sharing Apparently something called a "desktop portal" needs to provide a magic "service" and blabla; the TL;DR is that adding all this Gnome stuff makes screen sharing work. Tested using the Mozilla WebRTC test page: https://mozilla.github.io/webrtc-landing/gum_test.html Seems like our Chromium/Firefox are new enough not to require magic settings for Wayland. Change-Id: I250d857a0e941ef63fffca17a9c9feed14ec1bd9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12432 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- users/tazjin/nixos/modules/desktop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'users/tazjin') diff --git a/users/tazjin/nixos/modules/desktop.nix b/users/tazjin/nixos/modules/desktop.nix index f3cde6326c58..f59b868ad363 100644 --- a/users/tazjin/nixos/modules/desktop.nix +++ b/users/tazjin/nixos/modules/desktop.nix @@ -52,6 +52,16 @@ systemd.user.services.pipewire.wantedBy = [ "niri.service" ]; systemd.user.services.pipewire.before = [ "niri.service" ]; + # enable "desktop portals", which are important somehow + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + xdg-desktop-portal-gnome + ]; + config.common.default = "*"; + }; + # swaylock needs an empty PAM configuration, otherwise it locks the user out security.pam.services.swaylock = { }; -- cgit 1.4.1