Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ] fails to build #68931

Closed
peti opened this issue Sep 16, 2019 · 3 comments · Fixed by #68950
Closed

boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ] fails to build #68931

peti opened this issue Sep 16, 2019 · 3 comments · Fixed by #68950
Labels
6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: documentation

Comments

@peti
Copy link
Member

peti commented Sep 16, 2019

If I put

boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ] fails to build

into my configuration.nix on nixos-stable, then the system build fails with the following error:

# nixos-rebuild boot
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/6nqny4qlxirii4ka5kh2lz5cq89l6106-lightdm-display-setup.drv
  /nix/store/rqbarzy8w4azp7gln25zhskqq0hncmpf-xserver.conf.drv
  /nix/store/czxd229dk8rjfnp7r0b8lql8c13gc1kl-xserver-wrapper.drv
  /nix/store/1p3xr74m5msar3zcha224z0r7hc3yp5r-lightdm.conf.drv
  /nix/store/9962ai3nzs8kj1zb6s92j587ihfx4gx1-nvidia-persistenced-435.21.drv
  /nix/store/g80fpzx10s7nkf8150yv7lmbb439dlmy-nvidia-settings-435.21.drv
  /nix/store/7481hdiz326fc55ldfx9x0mdsicykdjl-system-path.drv
  /nix/store/x7x952axl1fvxs0z9iw58ph0pk5cx5mz-dbus-1.drv
  /nix/store/6bg70cg8g9d9mv8a059nnhx2m5acm5bi-unit-dbus.service.drv
  /nix/store/6mgr1wgkk60l8kyq0z3kc940qclsc7s7-unit-accounts-daemon.service.drv
  /nix/store/9ffnhzyg07vbdz42az8979zp5m303g30-set-environment.drv
  /nix/store/7jqyr8lj9wiq2zgpdaiif7nr9l6b0v91-etc-profile.drv
  /nix/store/wd0l2pc5gcka91wv5b95pg6nv48614qy-linux-5.2.13-modules.drv
  /nix/store/gcsp3zl65dacwdzly01x4151l0cff723-linux-5.2.13-modules-shrunk.drv
  /nix/store/93b55vj4zyrs53sgvffzn93h1fbs36i6-stage-1-init.sh.drv
  /nix/store/9v88mr502yx0nlpq0i0c5724zhf0r77k-unit-systemd-fsck-.service.drv
  /nix/store/ials5ydkqpswgb5vf2zla53vwxifmy1f-opengl-drivers.drv
  /nix/store/bk2965pwpaqzc7piphkpchxj56g00qlz-etc-nixos.conf.drv
  /nix/store/d5a0yfmydkiqcnxcrn649ws9lf76fi44-unit-polkit.service.drv
  /nix/store/xlmnl83gd409m82qcm9snqbw3jl0y3z9-unit-dbus.service.drv
  /nix/store/g433i16phx77g3yrkzjykmq0vly2k0ba-system-units.drv
  /nix/store/ip29vi3lgvj50j74b5id6109d4qf16xf-user-units.drv
  /nix/store/irwvsjyywi5cp58pg7sl41z5bsvlp042-etc-zshenv.drv
  /nix/store/d9s7jmm1970y8n7lgxl1c6f4b9dsximg-etc.drv
  /nix/store/fmfr513h21kq3virsiqr0d8j5j8ymmkn-kernel-modules.drv
  /nix/store/jcfv308j9c3l4n15mg44dl4dpd6b9p21-initrd-linux-5.2.13.drv
  /nix/store/jfkm2ij5z80pv6n2xynlycr67ajpqn8v-nixos-system-latitude-19.09pre192418.e19054ab3cd.drv
building '/nix/store/fmfr513h21kq3virsiqr0d8j5j8ymmkn-kernel-modules.drv'...
building '/nix/store/6nqny4qlxirii4ka5kh2lz5cq89l6106-lightdm-display-setup.drv'...
building '/nix/store/ials5ydkqpswgb5vf2zla53vwxifmy1f-opengl-drivers.drv'...
building '/nix/store/9962ai3nzs8kj1zb6s92j587ihfx4gx1-nvidia-persistenced-435.21.drv'...
building '/nix/store/wd0l2pc5gcka91wv5b95pg6nv48614qy-linux-5.2.13-modules.drv'...
collision between `/nix/store/qypkrykd93y4810kbygy9mmsxmzm1hif-nvidia-x11-435.21-5.2.13-bin/bin/nvidia-cuda-mps-server' and `/nix/store/pan81621yijsrdbwf6fc0v58zdj5ij91-nvidia-x11-435.21-4.19.71-bin/bin/nvidia-cuda-mps-server'
builder for '/nix/store/fmfr513h21kq3virsiqr0d8j5j8ymmkn-kernel-modules.drv' failed with exit code 255
cannot build derivation '/nix/store/jfkm2ij5z80pv6n2xynlycr67ajpqn8v-nixos-system-latitude-19.09pre192418.e19054ab3cd.drv': 1 dependencies couldn't be built
error: build of '/nix/store/jfkm2ij5z80pv6n2xynlycr67ajpqn8v-nixos-system-latitude-19.09pre192418.e19054ab3cd.drv' failed
@peti peti added 0.kind: bug Something is broken 0.kind: regression Something that worked before working no longer 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Sep 16, 2019
@peti
Copy link
Member Author

peti commented Sep 16, 2019

Hmm, it appears that

extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];

succeeds. We should probably document that version instead of the former?

@worldofpeace
Copy link
Contributor

Hmm, it appears that

extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];

succeeds. We should probably document that version instead of the former?

It's in the wiki https://nixos.wiki/wiki/Linux_kernel#Custom_kernel_modules

@worldofpeace worldofpeace added 9.needs: documentation and removed 0.kind: bug Something is broken 0.kind: regression Something that worked before working no longer labels Sep 16, 2019
@peti
Copy link
Member Author

peti commented Sep 17, 2019

I was thinking about the example in configuration.nix. That's the one I saw.

peti added a commit to peti/nixpkgs that referenced this issue Sep 17, 2019
@veprbl veprbl added the 6.topic: kernel The Linux kernel label Sep 17, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Sep 22, 2019
…ot.extraModulePackages

Fixes NixOS#68931.

(cherry picked from commit be3dae2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: documentation
Projects
None yet
3 participants