From 3f547e95e5acab25dc712e4bbd1619da1be92376 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Fri, 14 Aug 2026 10:58:49 -0500 Subject: [PATCH] enable xdg-desktop-portals --- demilich/services.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/demilich/services.nix b/demilich/services.nix index 945af75..292ed74 100644 --- a/demilich/services.nix +++ b/demilich/services.nix @@ -1,6 +1,10 @@ { config, ... }: { systemd = { + flatpak = { + enable = true; + }; + user = { services = { niri = { @@ -28,8 +32,20 @@ }; }; - xdg.portal.config.niri = { - "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; + xdg = { + portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-wlr + xdg-desktop-portal-gtk + xdg-desktop-portal-xapp + ]; + config = { + niri = { + "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; + }; + }; + }; }; services = {