Well, I’m met with a new crossroads as 6.9 is now at the “end of life”:
[nprevail@nixos-joyy-black256GB:~]$ sudo nixos-rebuild switch --upgrade
[sudo] password for nprevail:
unpacking channels...
building Nix...
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11:
1574| || pred here (elemAt values 1) (head values) then
1575| head values
| ^
1576| else
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: linux 6.9 was removed because it reached its end of life upstream
Any thoughts on what nvidia users can do if they’re unable to use the latest kernel?
Easier said than done: I use NixOS on a fairly recent laptop that needs at least 6.7. What should I do now? Should I try the Nvidia Open driver or will I run into the same problem with it?
For me, I have no issues with xanmod (6.10.4) and Nvidia (555.58.02) both proprietary and open.
As I remember, the problem was that the kernel was too new for the drivers, but seeing that 6.10 has been out for a while, I don’t think it’s a problem anymore.
I know what you mean, I have some hardware that requires a minimum kernel version, but nvidia (depending on how quick they are on updates) effectively sets a maximum kernel version. If there’s no supported kernel version between those two version constraints, you’re SOL.
(That’s one reason I personally don’t touch nvidia, zfs, etc. if I can help it.)
With that being said, you might as well try 6.10 to confirm if that maximum constraint really exists. This post is a month old and fixes may easily have come through since then.
Nvidia anyway causes enough issues that I recommend overriding the NixOS package version to just about everyone - just make sure to stay up-to-date manually. Gamingonlinux’ nvidia category is pretty nice to point an RSS feed reader at to keep track of new drivers if you do this.
Maybe we should start an nvidia flake with accompanying docs to help work around all this stuff.
I would just maintain the driver version downstream at least until the LTS kernel catches up with your hardware, personally.
It was pretty obvious after the fourth time the latest kernel was incompatible with the current nvidia driver version on stable. I think I first started running a different nvidia version in 2022?
Using mkDriver to do this became possible towards the end of last year, I learned about it from one of the nvidia maintainers after I explained to someone here how to do this and they pointed out there’s a nicer way now.
Perhaps this would be my learning lesson about ‘mkDriver’: Since 560.35.03 released a few hours ago, how would one go about with inputting the following? Where can I find the following information, or find out if it’s available for NixOS?
Ah, you’re right… I actually didn’t understand what an “empty string” is, but I’ll try to look it up. I don’t want to bother folks any further, but I appreciate everyone’s input!