summaryrefslogtreecommitdiff
path: root/overlays/nvidia-kernel-5.7.nix
blob: 92d3abb378acb41404f42d3e594c37d784403fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
final: prev: {
  linuxPackages_latest = prev.linuxPackages_latest.extend (self: super: {
    nvidiaPackages = super.nvidiaPackages // {
      stable = super.nvidiaPackages.stable.overrideAttrs (attrs: {
        patches = [
          (prev.fetchpatch {
            name = "nvidia-kernel-5.7.patch";
            url = "https://gitlab.com/snippets/1965550/raw";
            sha256 = "03iwxhkajk65phc0h5j7v4gr4fjj6mhxdn04pa57am5qax8i2g9w";
          })
        ];

        passthru = {
          inherit (super.nvidiaPackages.stable) settings persistenced persistencedVersion settingsVersion;
        };
      });
    };
  });
}