Till the beginning of July 2024, NixOS came with a kernel version 6.6.32. Now we’re at 6.6.45 and my audio is broken. I am right now following the official instructions to install a custom kernel:
This is no small task for my CPU. And I find it rather dumb, given that I can boot into an older generation that has this kernel, but nixpks only resolve kernel versions down to the minor version, not patch.
And to be clear, the reason that this is a different kernel than the one from your older generation which has the same version number (assuming you meant it has the same patch version) is because the dependencies of the kernel derivation have changed, so this particular build isn’t cached.
Indeed having every patch version we had would be too much compilation, caching and maintenance. Patch bumps are normally not supposed to regress, so this happens rarely.
It’s both too many versions to have Hydra building all the time, and also just a bigger maintenance burden on nixpkgs contributors. And ideally, every new patch version is strictly superior to the last, so it is morally correct to only have the latest one. EDIT: Lol @MagicRB wrote basically the exact same thing.
If you want cached builds though, I have in the past run with boot.kernelPackages set to a linuxPackages from a different nixpkgs version. I don’t necessarily recommend this, since sometimes the version of packages in nixpkgs and the version of a kernel module are interconnected, so it can lead to issues.
Interesting idea. But I know the issues you’re referring to from installing kate via home-manager that used a different version of nixpkgs than NixOS. And KDE Plasma was installed via NixOS. That broke a lot. So I think I’ll avoid that if I can. Building myself did work within reasonable time, and shouldn’t need to be done too often, so I’ll stick with this. Thanks a lot for the explanations, though