Loading nixos/modules/programs/steam.nix +6 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,12 @@ in { defaultText = literalExpression "pkgs.steam"; example = literalExpression '' pkgs.steam-small.override { extraLibraries = with pkgs; [ extraEnv = { MANGOHUD = true; OBS_VKCAPTURE = true; RADV_TEX_ANISO = 16; }; extraLibraries = p: with p; [ atk ]; } Loading pkgs/games/steam/fhsenv.nix +9 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ , extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs , extraProfile ? "" # string to append to profile , extraArgs ? "" # arguments to always pass to steam , extraEnv ? { } # Environment variables to pass to Steam , withGameSpecificLibraries ? true # exclude game specific libraries }: Loading Loading @@ -52,6 +53,8 @@ let fi ''; envScript = lib.toShellVars extraEnv; in buildFHSUserEnv rec { name = "steam"; Loading Loading @@ -248,6 +251,9 @@ in buildFHSUserEnv rec { ${exportLDPath} ${fixBootstrap} set -o allexport # Export the following env vars ${envScript} exec steam ${extraArgs} "$@" ''; Loading Loading @@ -281,6 +287,9 @@ in buildFHSUserEnv rec { ${exportLDPath} ${fixBootstrap} set -o allexport # Export the following env vars ${envScript} exec -- "$run" "$@" ''; Loading Loading
nixos/modules/programs/steam.nix +6 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,12 @@ in { defaultText = literalExpression "pkgs.steam"; example = literalExpression '' pkgs.steam-small.override { extraLibraries = with pkgs; [ extraEnv = { MANGOHUD = true; OBS_VKCAPTURE = true; RADV_TEX_ANISO = 16; }; extraLibraries = p: with p; [ atk ]; } Loading
pkgs/games/steam/fhsenv.nix +9 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ , extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs , extraProfile ? "" # string to append to profile , extraArgs ? "" # arguments to always pass to steam , extraEnv ? { } # Environment variables to pass to Steam , withGameSpecificLibraries ? true # exclude game specific libraries }: Loading Loading @@ -52,6 +53,8 @@ let fi ''; envScript = lib.toShellVars extraEnv; in buildFHSUserEnv rec { name = "steam"; Loading Loading @@ -248,6 +251,9 @@ in buildFHSUserEnv rec { ${exportLDPath} ${fixBootstrap} set -o allexport # Export the following env vars ${envScript} exec steam ${extraArgs} "$@" ''; Loading Loading @@ -281,6 +287,9 @@ in buildFHSUserEnv rec { ${exportLDPath} ${fixBootstrap} set -o allexport # Export the following env vars ${envScript} exec -- "$run" "$@" ''; Loading