Files
copnix/nixos/gaming/steam/default.nix
T
elwrcl 1cacabb944 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.
2026-04-12 23:18:24 +03:00

45 lines
850 B
Nix

{ pkgs, ... }:
{
programs.steam = {
enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
package = pkgs.steam.override {
extraPkgs = p: with p; [
xdg-desktop-portal
xdg-desktop-portal-gtk
liberation_ttf
wqy_zenhei
corefonts
vista-fonts
libXcursor
libXi
libXinerama
libXScrnSaver
libgpg-error
libkrb5
keyutils
bash
coreutils
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
gamemode
zenity
pkgsi686Linux.libgcc
pkgsi686Linux.glibc
pkgsi686Linux.mesa
];
};
environment.sessionVariables = {
STEAM_USE_PORTAL = "1";
};
gamescopeSession.enable = true;
};
programs.bash.enable = true;
}