From 23c19987a35d93acb745042999a9edf1130f6252 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Sat, 4 Jan 2025 22:36:39 +0100 Subject: [PATCH] programs/xdg: setup system-wide portals --- config/nixos/programs/xdg.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/nixos/programs/xdg.nix diff --git a/config/nixos/programs/xdg.nix b/config/nixos/programs/xdg.nix new file mode 100644 index 0000000..209796f --- /dev/null +++ b/config/nixos/programs/xdg.nix @@ -0,0 +1,14 @@ +{pkgs, ...}: { + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + config = { + common.default = ["gtk"]; + hyprland.default = ["gtk" "hyprland"]; + }; + + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + ]; + }; +}