From 45f0c6e201b91a8524c3a59696be03ab7109adec Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 28 May 2024 01:06:06 +0800 Subject: [PATCH] nixos: use xdgOpenUsePortal --- nixos/profiles/common/graphical/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/nixos/profiles/common/graphical/default.nix b/nixos/profiles/common/graphical/default.nix index 48c0da0..9a8fcd7 100644 --- a/nixos/profiles/common/graphical/default.nix +++ b/nixos/profiles/common/graphical/default.nix @@ -43,17 +43,15 @@ security.pam.services.swaylock = {}; xdg.portal = { enable = true; + xdgOpenUsePortal = true; wlr.enable = true; extraPortals = with pkgs; [xdg-desktop-portal-gtk]; - config = { - # 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"; - "org.freedesktop.impl.portal.Inhibit" = "none"; - }; + # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf + config."sway" = { + default = "gtk"; + "org.freedesktop.impl.portal.ScreenCast" = "wlr"; + "org.freedesktop.impl.portal.Screenshot" = "wlr"; + "org.freedesktop.impl.portal.Inhibit" = "none"; }; }; services = {