Skip to content

Commit

Permalink
nixos/sway: add wlr portal back with mkDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Oct 29, 2024
1 parent 73a23a5 commit 0089fb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nixos/modules/programs/wayland/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ in
# https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/contrib/wlroots-portals.conf
# https://github.com/emersion/xdg-desktop-portal-wlr/pull/315
xdg.portal.config.sway = {
# Use xdg-desktop-portal-gtk for every portal interface...
default = "gtk";
# ... except for the ScreenCast, Screenshot and Secret
default = lib.mkDefault [ "wlr" "gtk" ];
# use wlr explicitly for screen sharing
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
"org.freedesktop.impl.portal.Screenshot" = "wlr";
# ignore inhibit bc gtk portal always returns as success,
Expand Down

0 comments on commit 0089fb2

Please sign in to comment.