Help with using it
573 opened this issue · 2 comments
573 commented
I tried to use https://github.com/guibou/nixGL/blob/4de92f0/README.md#opengl---hybrid-intel--nvidia-laptop but (https://github.com/guibou/nixGL/tree/489d6b095ab9d289fe11af0219a9ff00fe87c7c5):
nix repl
:lf github:guibou/nixGL
:p packages.x86_64-linux.nixGLNvidiaBumblebee
error:
… while calling the 'derivationStrict' builtin
at //builtin/derivation.nix:9:12: (source not available)
… while evaluating the derivation attribute 'name'
at /nix/store/kc7nh9sdr4z8c7xc9j9891v212k2zj8k-source/pkgs/stdenv/generic/make-derivation.nix:270:7:
269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
270| name =
| ^
271| let
(stack trace truncated; use '--show-trace' to show the full trace)
error: cannot coerce null to a string
«derivation
573 commented
Is it due to cat /proc/driver/nvidia/version
not found (see https://discourse.nixos.org/t/nixgl-needs-you-for-testing/6921/15) ?
573 commented
For the nixGLNvidiaBumblebee
wrapper to work one needs to have the drivers installed on their system first, just a very tiny selection of examples for a laptop with hybrid graphics, more to find in the README:
- NixOS: https://nixos.wiki/wiki/Nvidia#Laptop_Configuration:_Hybrid_Graphics_.28Nvidia_Optimus_PRIME.29
- non-NixOS: https://wiki.archlinux.org/title/NVIDIA_Optimus, in our case here https://wiki.archlinux.org/title/Bumblebee
For other hardware scenarios sudo lshw -c display
might help.