feat(nvidia): use latest beta driver
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
66d8dc24b9
commit
a6c90f335c
1 changed files with 9 additions and 20 deletions
|
@ -65,26 +65,15 @@ in {
|
||||||
package =
|
package =
|
||||||
if !cfg.enableWayland
|
if !cfg.enableWayland
|
||||||
then config.boot.kernelPackages.nvidiaPackages.stable
|
then config.boot.kernelPackages.nvidiaPackages.stable
|
||||||
else let
|
else
|
||||||
rcu_patch = pkgs.fetchpatch {
|
# Get newest beta driver version for better Wayland support
|
||||||
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
version = "555.42.02";
|
||||||
};
|
sha256_64bit = "sha256-k7cI3ZDlKp4mT46jMkLaIrc2YUx1lh1wj/J4SVSHWyk=";
|
||||||
in
|
sha256_aarch64 = "sha256-ekx0s0LRxxTBoqOzpcBhEKIj/JnuRCSSHjtwng9qAc0=";
|
||||||
# Keep the driver version at 535.xx.xx for Wayland desktop
|
openSha256 = "sha256-3/eI1VsBzuZ3Y6RZmt3Q5HrzI2saPTqUNs6zPh5zy6w=";
|
||||||
# games stutter on more recent versions
|
settingsSha256 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
|
||||||
# https://github.com/NixOS/nixpkgs/blob/e256f39bec8e01808c0a3e411d961cbced3f4e09/pkgs/os-specific/linux/nvidia-x11/default.nix#L70
|
persistencedSha256 = "sha256-3ae31/egyMKpqtGEqgtikWcwMwfcqMv2K4MVFa70Bqs=";
|
||||||
config.boot.kernelPackages.nvidiaPackages.mkDriver rec {
|
|
||||||
version = "535.43.28";
|
|
||||||
persistencedVersion = "535.98";
|
|
||||||
settingsVersion = "535.98";
|
|
||||||
sha256_64bit = "sha256-ic7r3MPp65fdEwqDRyc0WiKonL5eF6KZUpfD/C3vYaU=";
|
|
||||||
openSha256 = "sha256-a5iccyISHheOfTwpsrz6puqrVhgzYWFvNlykVG3+PVc=";
|
|
||||||
settingsSha256 = "sha256-jCRfeB1w6/dA27gaz6t5/Qo7On0zbAPIi74LYLel34s=";
|
|
||||||
persistencedSha256 = "sha256-WviDU6B50YG8dO64CGvU3xK8WFUX8nvvVYm/fuGyroM=";
|
|
||||||
url = "https://developer.nvidia.com/downloads/vulkan-beta-${lib.concatStrings (lib.splitVersion version)}-linux";
|
|
||||||
|
|
||||||
patches = [rcu_patch];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue