programs.gamescope.env

NixOS option

Default environment variables available to the GameScope process, overridable at runtime.

type: attribute set of string
Default
{ }
Example
# for Prime render offload on Nvidia laptops.
# Also requires `hardware.nvidia.prime.offload.enable`.
{
  __NV_PRIME_RENDER_OFFLOAD = "1";
  __VK_LAYER_NV_optimus = "NVIDIA_only";
  __GLX_VENDOR_LIBRARY_NAME = "nvidia";
}
declared in: nixos/modules/programs/gamescope.nixView source on NixOS/nixpkgs →