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

installation of nvidia legacy 340 driver fails on upgrade to 21.05 #4970

Closed
jkozak opened this issue Jul 1, 2021 · 5 comments
Closed

installation of nvidia legacy 340 driver fails on upgrade to 21.05 #4970

jkozak opened this issue Jul 1, 2021 · 5 comments
Labels

Comments

@jkozak
Copy link

jkozak commented Jul 1, 2021

Describe the bug

I am trying to upgrade nixos to 21.05. I have an antique nvidia card which requires the legacy 340 drivers and I have set up configuration.nix so:

  # Enable the X11 windowing system.
  services.xserver.enable = true;
  services.xserver.videoDrivers = [ "nvidia" ];
  hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_340;
  services.xserver.layout = "gb";

when I do nixos-rebuild --upgrade switch it fails so (on multiple files):

In file included from /build/kernel/nv-acpi.c:15:
/build/kernel/nv-linux.h: At top level:
/build/kernel/nv-linux.h:139:10: fatal error: linux/ioctl32.h: No such file or directory
  139 | #include <linux/ioctl32.h>          /* register_ioctl32_conversion()    */
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

nix-env --version output

nix-env (Nix) 2.3.11

nixos-rebuild.log

@jkozak jkozak added the bug label Jul 1, 2021
@bjornfor
Copy link
Contributor

bjornfor commented Jul 1, 2021

NixOS 21.05 upgraded the default Linux kernel version. Perhaps you can get it working by selecting an older kernel version?

@jkozak
Copy link
Author

jkozak commented Jul 2, 2021

It builds on kernel 5.4 - thanks!

@Ericson2314
Copy link
Member

Wrong repo?

@RinatKurmaev
Copy link

It builds on kernel 5.4 - thanks!

How did you manage to do that. Can you provide the example of your configuration?

@vcunat
Copy link
Member

vcunat commented Aug 1, 2021

@RinatKurmaev: that's basic NixOS config

boot.kernelPackages = pkgs.linuxPackages_5_4;

@vcunat vcunat closed this as completed Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants