all repos — dotfiles @ 0521931fb5b8a18045e51d4d17d9c91f21a79a95

my *nix dotfiles

bin/nvidia-offload.nix (view raw)

 1{ pkgs, ... }:
 2
 3pkgs.writeShellScriptBin "nvidia-offload"
 4  ''
 5    export __NV_PRIME_RENDER_OFFLOAD=1
 6    export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
 7    export __GLX_VENDOR_LIBRARY_NAME=nvidia
 8    export __VK_LAYER_NV_optimus=NVIDIA_only
 9    exec -a "$0" "$@"
10  ''