# How to use the latest nvidia drivers

**URL:** https://discourse.nixos.org/t/how-to-use-the-latest-nvidia-drivers/81489
**Category:** Help
**Created:** [November 28, 2026, 1:56pm UTC](https://discourse.nixos.org/t/how-to-use-the-latest-nvidia-drivers/81489 "2026-11-28T13:56:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Unfilled7320](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/u/c5a1d2/32.png) [@Unfilled7320](https://discourse.nixos.org/u/Unfilled7320)
#### Post date: [November 28, 2026, 1:56pm UTC](https://discourse.nixos.org/t/how-to-use-the-latest-nvidia-drivers/81489/1 "2026-11-28T13:56:43Z")

</div>

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:

```auto
boot.kernelPackages = pkgs.linuxKernel.packages.linux_7_3.nvidia_x11_latest;

```

The wiki mentions

```auto
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.

---

<div class="post-metadata">

### Author: ![TLATER](https://discourse.nixos.org/user_avatar/discourse.nixos.org/tlater/32/4257_2.png) [@TLATER](https://discourse.nixos.org/u/TLATER)
#### Post date: [November 30, 2026, 8:45am UTC](https://discourse.nixos.org/t/how-to-use-the-latest-nvidia-drivers/81489/2 "2026-11-30T08:45:30Z")

</div>

> [@Unfilled7320](#):
>
> 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`.

That’s not currently possible. Stable does not update packages when they may contain breaking changes, and the nvidia driver doesn’t have stability guarantees.

There are exceptions to this rule (e.g. the kernell), but up until recently the nvidia driver was not an exception and only very rarely bumped on stable (including for security-related releases, so I _strongly_ recommend manually updating on stable). This _may_ change in future releases, there’s finally been a bit of movement on this, but for now we’re stuck with manual updates.

* * *

For now, you need to do what the wiki recommends, and manually update those hashes every time there is a new driver. Personally I have written a script to do this for me:

[https://codeberg.org/tlater/dotfiles/src/commit/1ca509df6a2088afc675c80ee5391e22af214b49/packages/nvidia/update.nu](https://codeberg.org/tlater/dotfiles/src/commit/1ca509df6a2088afc675c80ee5391e22af214b49/packages/nvidia/update.nu)

Note that it is _very important_ that you update those hashes. Nix will trust them, so if you change the version number without changing the hashes, nix will go and build the old version while changing the package name to have the new version in it.

Easiest way to do the update manually is to change the version number, and set all the hashes to an empty string.

Also, for the record, if you don’t use `nvidia-settings` (`nvidia-smi` is the CLI alternative) or `persistenced` (not at all necessary for desktop systems), you can disable those, and skip the hashes: [https://codeberg.org/tlater/dotfiles/src/commit/1ca509df6a2088afc675c80ee5391e22af214b49/packages/nvidia/package.nix#L12](https://codeberg.org/tlater/dotfiles/src/commit/1ca509df6a2088afc675c80ee5391e22af214b49/packages/nvidia/package.nix#L12)

> [@Unfilled7320](#):
>
> I have tried using the latest kernel in the past but it kept braking with the nvidia drivers because they are often older.

This will still happen, even if you use the latest nvidia driver. As a kernel module, the driver needs to be compiled into the kernel tree, and as such is tightly coupled to the kernel version.

Updating the nvidia driver however is not part of the kernel release process, so from time to time a new kernel will be released that the nvidia driver is not yet compatible with. Then it takes nvidia some time to patch their driver.

Yes, at this point updating the driver becomes necessary, but there will still have been a period in which things broke. I would not recommend the latest kernel if you use nvidia, or _any_ module (e.g. zfs) that is not part of the kernel, for that matter.
