Nvidia: Difference between revisions
imported>Vodkabot No edit summary |
imported>Vodkabot No edit summary |
||
Line 29: | Line 29: | ||
Official solution by nvidia, but needs some preparing. | Official solution by nvidia, but needs some preparing. | ||
'''1.''' Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together, and also to disable nvidia card by default. Requires NixOS version with https://github.com/NixOS/nixpkgs/pull/37369 merged | '''1.''' Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together, and also to disable nvidia card by default. Requires NixOS version with https://github.com/NixOS/nixpkgs/pull/37369 merged. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
let | let | ||
Line 51: | Line 51: | ||
Like with Bumblebee, start the game via ''primerun.sh''. | Like with Bumblebee, start the game via ''primerun.sh''. | ||
* Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/05e375d7103ac51e2da917965c37246c99f1ae4f/nixos/modules/hardware/video/nvidia.nix# | * Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/05e375d7103ac51e2da917965c37246c99f1ae4f/nixos/modules/hardware/video/nvidia.nix#L72 | ||
* Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me | * Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me |