From 5f3c13ca91ce80af5e663a58a0e23881321a4159 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 24 Dec 2023 00:11:06 +0100 Subject: [PATCH] Update portals configuration --- nixos/includes/desktop/xdg-portal.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/includes/desktop/xdg-portal.nix b/nixos/includes/desktop/xdg-portal.nix index 130f664..9d2b049 100644 --- a/nixos/includes/desktop/xdg-portal.nix +++ b/nixos/includes/desktop/xdg-portal.nix @@ -1,9 +1,18 @@ -{ config, pkgs, ...}: +{ pkgs, ...}: { xdg.portal = { enable = true; wlr.enable = true; # gtk portal needed to make gtk apps happy extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + config = { + common = { + default = [ + "gtk" + ]; + "org.freedesktop.impl.portal.ScreenCast" = "wlr"; + "org.freedesktop.impl.portal.Screenshot" = "wlr"; + }; + }; }; }