added obs vlc and prime-run to laptop

This commit is contained in:
Gerg-L 2023-03-14 20:58:30 -04:00
parent e4babb3003
commit 478a7757aa
2 changed files with 25 additions and 2 deletions

View file

@ -1,4 +1,17 @@
_: {config, ...}: {
_: {
config,
pkgs,
...
}: let
prime-run = pkgs.writeShellScriptBin "prime-run" ''
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 = [prime-run];
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
prime = {