Add steam
This commit is contained in:
parent
eb010055b2
commit
3175158f84
8 changed files with 43 additions and 18 deletions
14
system/modules/environment.nix
Normal file
14
system/modules/environment.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
offload = pkgs.writeShellScriptBin "offload" ''
|
||||
#!/bin/bash
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec "$@"
|
||||
'';
|
||||
in {
|
||||
environment.systemPackages = [ offload ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue