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 <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
a9403664e1
commit
33f30573f9
1 changed files with 10 additions and 0 deletions
|
@ -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 = { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue