From ffed2f4fd0c15e512c87732ff79c64cc48402078 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 10 Dec 2023 16:01:32 +0100 Subject: [PATCH] Fix XDG portal selection Signed-off-by: magic_rb --- nixos/common/xserver.nix | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/nixos/common/xserver.nix b/nixos/common/xserver.nix index bb2feac..28a59e0 100644 --- a/nixos/common/xserver.nix +++ b/nixos/common/xserver.nix @@ -1,11 +1,22 @@ -{ pkgs, lib, ... }: -let - inherit (lib) - getExe - singleton; -in { - xdg.portal = { + pkgs, + lib, + ... +}: let + inherit + (lib) + getExe + singleton + ; +in { + xdg.portal = { + config = { + common = { + default = [ + "gtk" + ]; + }; + }; enable = true; xdgOpenUsePortal = true; extraPortals = singleton pkgs.xdg-desktop-portal-gtk;