mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Downgrade nvidia driver to version 535
This commit is contained in:
parent
69ca5d1c26
commit
c1009efa0e
1 changed files with 28 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{inputs, ...}: {
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.default
|
inputs.disko.nixosModules.default
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
|
@ -14,6 +19,28 @@
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
package = let
|
||||||
|
rcu_patch = pkgs.fetchpatch {
|
||||||
|
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
||||||
|
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
||||||
|
};
|
||||||
|
linux_6_8_patch = pkgs.fetchpatch {
|
||||||
|
url = "https://gist.github.com/joanbm/24f4d4f4ec69f0c37038a6cc9d132b43/raw/bacb9bf3617529d54cb9a57ae8dc9f29b41d4362/nvidia-470xx-fix-linux-6.8.patch";
|
||||||
|
hash = "sha256-SPLC2uGdjHSy4h9i3YFjQ6se6OCdWYW6tlC0CtqmP50=";
|
||||||
|
extraPrefix = "kernel/";
|
||||||
|
stripLen = 1;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
|
version = "535.129.03";
|
||||||
|
sha256_64bit = "sha256-5tylYmomCMa7KgRs/LfBrzOLnpYafdkKwJu4oSb/AC4=";
|
||||||
|
sha256_aarch64 = "sha256-i6jZYUV6JBvN+Rt21v4vNstHPIu9sC+2ZQpiLOLoWzM=";
|
||||||
|
openSha256 = "sha256-/Hxod/LQ4CGZN1B1GRpgE/xgoYlkPpMh+n8L7tmxwjs=";
|
||||||
|
settingsSha256 = "sha256-QKN/gLGlT+/hAdYKlkIjZTgvubzQTt4/ki5Y+2Zj3pk=";
|
||||||
|
persistencedSha256 = "sha256-FRMqY5uAJzq3o+YdM2Mdjj8Df6/cuUUAnh52Ne4koME=";
|
||||||
|
|
||||||
|
patches = [rcu_patch linux_6_8_patch];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.autorandr = {
|
services.autorandr = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue