evaluation warning: The option `services.xserver.displayManager.sessionPackages' defined in `/nix/store/5vx5r07fx9qjmmyrb4ihqyv5jikyi7ph-source/nix/desktop/hyprland.nix' has been renamed to `services.displayManager.sessionPackages'.
error: builder for '/nix/store/850lzifnq3fygb0008q2ha594nj0pgnm-nvidia-x11-565.77-6.14.6.drv' failed with exit code 2;
last 25 log lines:
> CC [M] nvidia-drm/nvidia-drm-utils.o
> CC [M] nvidia-drm/nvidia-drm-crtc.o
> CC [M] nvidia-drm/nvidia-drm-encoder.o
> CC [M] nvidia-drm/nvidia-drm-connector.o
> CC [M] nvidia-drm/nvidia-drm-gem.o
> CC [M] nvidia-drm/nvidia-drm-fb.o
> CC [M] nvidia-drm/nvidia-drm-modeset.o
> CC [M] nvidia-drm/nvidia-drm-fence.o
> nvidia-drm/nvidia-drm-drv.c:1907:6: error: 'struct drm_driver' has no member named 'date'
> 1907 | .date = "20160202",
> | ^~~~
> nvidia-drm/nvidia-drm-drv.c:1907:31: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast []
> 1907 | .date = "20160202",
> | ^~~~~~~~~~
> nvidia-drm/nvidia-drm-drv.c:1907:31: note: (near initialization for 'nv_drm_driver.driver_features')
> nvidia-drm/nvidia-drm-drv.c:1907:31: error: initializer element is not computable at load time
> nvidia-drm/nvidia-drm-drv.c:1907:31: note: (near initialization for 'nv_drm_driver.driver_features')
> make[4]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/scripts/Makefile.build:207: nvidia-drm/nvidia-drm-drv.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[3]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/Makefile:1995: .] Error 2
> make[2]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/Makefile:251: __sub-make] Error 2
> make[2]: Leaving directory '/build/NVIDIA-Linux-x86_64-565.77/kernel'
> make[1]: *** [Makefile:251: __sub-make] Error 2
> make[1]: Leaving directory '/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source'
> make: *** [Makefile:115: modules] Error 2
For full logs, run 'nix log /nix/store/850lzifnq3fygb0008q2ha594nj0pgnm-nvidia-x11-565.77-6.14.6.drv'.
error: 1 dependencies of derivation '/nix/store/k7i5ncrmaf6bikxipg3z4hy0m33bg750-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s5xccjnfmj3mwj127fk9ncnj910ci9fz-firmware.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8gqiw220kj1zmb0jmqxlsvxd9lpwl5wf-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qniff0q41kihb0zjdc67v9j2f8zpirxz-nixos-system-nixos-24.11.20250517.9b5ac7a.drv' failed to build
You’ve got two separate messages there.
The first is simply a warning that an option has been renamed, if you change the services.xerver.displayManager.sessionPackages
line in your configuration.nix
file to services.displayManager.sessionPackages
(i.e remove .xserver
).
The second is the actual error, it seems that your nVidia driver is failing to compile. I’d suggest renaming the thread to hopefully try to attract some more help. Maybe rename the thread to “Nvidia 565 Driver fails to compile - struct drm_driver has no member named date”. I’m not familiar enough with the nVidia drivers to know how to fix the problem, if there isn’t one already I’d raise an issue on the nixpkgs GitHub. In the meantime, while it’s investigated, you could try setting hardware.nvidia.open = false;
to see if using the (admittedly closed source) precompiled kernel module will allow your system to build?