From a13064ae2733f727e5e0fec70213e4c0b69567d2 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sun, 10 Jan 2021 23:42:02 -0500 Subject: [PATCH] nixos/xdg/portal: fix loading portals from systemd service --- nixos/modules/config/xdg/portal.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/xdg/portal.nix b/nixos/modules/config/xdg/portal.nix index 3c7cd729c60..80ec3126ca5 100644 --- a/nixos/modules/config/xdg/portal.nix +++ b/nixos/modules/config/xdg/portal.nix @@ -62,7 +62,7 @@ with lib; services.dbus.packages = packages; systemd.packages = packages; - environment.variables = { + environment.sessionVariables = { GTK_USE_PORTAL = mkIf cfg.gtkUsePortal "1"; XDG_DESKTOP_PORTAL_DIR = "${joinedPortals}/share/xdg-desktop-portal/portals"; };