From 1cacabb9443409bbc8c232f5cae14924b5c835e4 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Sun, 12 Apr 2026 23:18:24 +0300 Subject: [PATCH] Enable Steam portal integration This change configures the system to use the GTK portal for desktop integration with Steam. It ensures that the necessary portal file is available and sets an environment variable to enable Steam's portal functionality. This should improve how Steam interacts with the desktop environment for features like file pickers and screen sharing. --- home/default.nix | 3 ++- nixos/gaming/steam/default.nix | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/home/default.nix b/home/default.nix index b35bb12..8baf558 100644 --- a/home/default.nix +++ b/home/default.nix @@ -85,7 +85,8 @@ default-folder-viewer = "icon-view"; }; }; - + xdg.configFile."xdg-desktop-portal/portals/gtk.portal".source = + "${pkgs.xdg-desktop-portal-gtk}/share/xdg-desktop-portal/portals/gtk.portal"; qt = { enable = true; platformTheme.name = "gtk3"; diff --git a/nixos/gaming/steam/default.nix b/nixos/gaming/steam/default.nix index a53870d..f1dbb38 100644 --- a/nixos/gaming/steam/default.nix +++ b/nixos/gaming/steam/default.nix @@ -34,7 +34,11 @@ pkgsi686Linux.mesa ]; }; + environment.sessionVariables = { + STEAM_USE_PORTAL = "1"; + }; gamescopeSession.enable = true; }; programs.bash.enable = true; + }