about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2024-09-03T21·31+0300
committerclbot <clbot@tvl.fyi>2024-09-03T22·34+0000
commit33f30573f91de05dd5acf930f0d8c2b9540c6e44 (patch)
tree201addd8a8a5c4f05c9d1bffb3fec9bacedefd0d /users
parenta9403664e1db1d5c6d9b1edd6649f228bcbd0c24 (diff)
fix(tazjin/nixos): fix wayland screen sharing r/8650
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 <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/nixos/modules/desktop.nix10
1 files changed, 10 insertions, 0 deletions
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 = { };