I have a flake setup with unstable as an additional input. The default nvidia drivers on the stable branch are only on 595.112.07, but the latest version from nvidia is 620.73.04. I saw on nixpkgs that linuxKernel.packages.linux_7_3.nvidia_x11_latest is on version 615.78.08, but I’m not sure how I use that.
Do I simply do:
boot.kernelPackages = pkgs.linuxKernel.packages.linux_7_3.nvidia_x11_latest;
The wiki mentions
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "595.112.07";
sha256_64bit = "sha256-Gjjs1Tii2mIypzMBhAY69Z6fyUbJCMylVb0HkJhIufA=";
sha256_aarch64 = "sha256-7qQuOKX9xS/wpKa+bEOqsS2euJjJu182vl+6UU6bxR0=";
openSha256 = "sha256-nQnXGCcvo4i7eGaVft3Xc9dRUPPH0v9Zi87cfI4i/Ys=";
settingsSha256 = "sha256-2bWSou/9J3EojhSRXBol/+yGGu2XZ6EuCptb5qXHM14=";
persistencedSha256 = "sha256-cGMEUXN7WPu822zZDLTSu6Owj8VXG4PNmhe9oKqMMKI=";
};
Ideally I just want to specify to use the latest kernel + nvidia drivers in a way where I can update by just running nix flake update. I have tried using the latest kernel in the past but it kept braking with the nvidia drivers because they are often older.