From 0df86e31eebd661a74a33a9867de273005b3a930 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 16 Jan 2024 16:22:15 +0800 Subject: [PATCH] nixos: portal: use configuration from Arch Linux --- .../nixos/profiles/common/graphical/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/users/guanranwang/nixos/profiles/common/graphical/default.nix b/users/guanranwang/nixos/profiles/common/graphical/default.nix index 202a51c..7cfd885 100644 --- a/users/guanranwang/nixos/profiles/common/graphical/default.nix +++ b/users/guanranwang/nixos/profiles/common/graphical/default.nix @@ -20,13 +20,13 @@ wlr.enable = true; extraPortals = with pkgs; [xdg-desktop-portal-gtk]; config = { - common.default = [ - "gtk" - ]; - sway.default = [ - "wlr" - "gtk" - ]; + # from Arch Linux + # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf + sway = { + default = "gtk"; + "org.freedesktop.impl.portal.ScreenCast" = "wlr"; + "org.freedesktop.impl.portal.Screenshot" = "wlr"; + }; }; }; services = {