Hey, I managed to set up Nvidia successfully on my NixOS machine. However, when I enable hardware.nvidia.nvidiaSettings = true
, I am getting the following build error:
error: builder for '/nix/store/4bk8cmp2jld3i48zi4wyzlkqbc9cfgwg-nvidia-settings-565.57.01.drv' failed with exit code 2;
last 10 log lines:
> make[1]: *** [Makefile:381: _out/Linux_x86_64/gtk3/ctkframelock.o] Error 1
> make[1]: *** [Makefile:381: _out/Linux_x86_64/gtk3/ctkcolorcorrectionpage.o] Error 1
> In file included from gtk+-2.x/ctkcolorcorrection.c:22:
> libXNVCtrlAttributes/NvCtrlAttributes.h:24:10: fatal error: vulkan/vulkan.h: No such file or directory
> 24 | #include <vulkan/vulkan.h>
> | ^~~~~~~~~~~~~~~~~
> compilation terminated.
> make[1]: *** [Makefile:381: _out/Linux_x86_64/gtk3/ctkcolorcorrection.o] Error 1
> make[1]: Leaving directory '/build/source/src'
> make: *** [Makefile:23: all] Error 2
For full logs, run 'nix log /nix/store/4bk8cmp2jld3i48zi4wyzlkqbc9cfgwg-nvidia-settings-565.57.01.drv'.
error: 1 dependencies of derivation '/nix/store/gxc49746gd20aqf7xm2di50v5vy21pwp-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p5ddjxj07g6yrhjdxqflpxn83nqkbmiw-nixos-system-vega-24.05.20241127.0c5b4ec.drv' failed to build
I am on the following Nvidia version:
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "565.57.01";
sha256_64bit = "sha256-buvpTlheOF6IBPWnQVLfQUiHv4GcwhvZW3Ks0PsYLHo=";
openSha256 = lib.fakeSha256;
settingsSha256 = "sha256-H7uEe34LdmUFcMcS6bz7sbpYhg9zPCb/5AmZZFTx1QA=";
# settingsSha256 = "sha256-H7uEe34LdmUFcMcS6bz7sbpYhg9zPCb/5AmZZFTx1QA=";
sha256_aarch64 = lib.fakeSha256;
persistencedSha256 = lib.fakeSha256;
};
and my entire Nvidia config can be found here.
Does anyone have a similar experience and maybe a fix for this? I thought about an overlay, but I failed (nothing changed) at setting one up.