mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardware/Nvidia] Add many useful environmental variables
This commit is contained in:
parent
87b70dcca1
commit
4e28b5380e
2 changed files with 10 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ in {
|
|||
hardware.steam-hardware.enable = true;
|
||||
programs.steam.remotePlay.openFirewall = true;
|
||||
environment.variables = {
|
||||
"__GL_SHADER_DISK_CACHE" = "true";
|
||||
"__GL_SHADER_DISK_CACHE_SIZE" = "${toString (50 * 1000)}";
|
||||
"__GL_SHADER_DISK_CACHE_SKIP_CLEANUP" = "1"; # Avoid 128mb limit of shader cache
|
||||
"__GL_SHADER_DISK_CACHE_PATH" = cfg.graphics.shaderCache.path + "/nvidia" ;
|
||||
"MESA_SHADER_CACHE_MAX_SIZE" = "50G"; # Put large-enough value. Default is only 1G
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue