summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-10 16:41:53 +0200
committerMel <mel@rnrd.eu>2025-06-10 16:41:53 +0200
commit24a79f9428827f8ee5f5354a70194948ea038b4d (patch)
tree7ad83a7a8c430953ec73011c5e880c76b267678a
parent015cf174aeb0436fece18112bea095ea6cc2100b (diff)
downloadminerals-24a79f9428827f8ee5f5354a70194948ea038b4d.tar.zst
minerals-24a79f9428827f8ee5f5354a70194948ea038b4d.zip
Update Nvidia module and driver for bismuth
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--modules/nvidia.nix31
1 files changed, 23 insertions, 8 deletions
diff --git a/modules/nvidia.nix b/modules/nvidia.nix
index b249c20..dae9fb5 100644
--- a/modules/nvidia.nix
+++ b/modules/nvidia.nix
@@ -1,12 +1,25 @@
-{ config, lib, pkgs, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+let
+ gpl_symbols_linux_615_patch = pkgs.fetchpatch {
+ url = "https://github.com/CachyOS/kernel-patches/raw/914aea4298e3744beddad09f3d2773d71839b182/6.15/misc/nvidia/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch";
+ hash = "sha256-YOTAvONchPPSVDP9eJ9236pAPtxYK5nAePNtm2dlvb4=";
+ stripLen = 1;
+ extraPrefix = "kernel/";
+ };
+in
{
hardware.graphics = {
enable = true;
enable32Bit = true;
};
- services.xserver.videoDrivers = ["nvidia"];
+ services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
@@ -23,12 +36,14 @@
# package = config.boot.kernelPackages.nvidiaPackages.beta;
# manual way:
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
- version = "570.86.16";
- sha256_64bit = "sha256-RWPqS7ZUJH9JEAWlfHLGdqrNlavhaR1xMyzs8lJhy9U=";
- sha256_aarch64 = "sha256-RiO2njJ+z0DYBo/1DKa9GmAjFgZFfQ1/1Ga+vXG87vA=";
- openSha256 = "sha256-DuVNA63+pJ8IB7Tw2gM4HbwlOh1bcDg2AN2mbEU9VPE=";
- settingsSha256 = "sha256-9rtqh64TyhDF5fFAYiWl3oDHzKJqyOW3abpcf2iNRT8=";
- persistencedSha256 = "sha256-3mp9X/oV8o2TH9720NnoXROxQ4g98nNee+DucXpQy3w=";
+ version = "575.57.08";
+ sha256_64bit = "sha256-KqcB2sGAp7IKbleMzNkB3tjUTlfWBYDwj50o3R//xvI=";
+ sha256_aarch64 = "sha256-VJ5z5PdAL2YnXuZltuOirl179XKWt0O4JNcT8gUgO98=";
+ openSha256 = "sha256-DOJw73sjhQoy+5R0GHGnUddE6xaXb/z/Ihq3BKBf+lg=";
+ settingsSha256 = "sha256-AIeeDXFEo9VEKCgXnY3QvrW5iWZeIVg4LBCeRtMs5Io=";
+ persistencedSha256 = "sha256-Len7Va4HYp5r3wMpAhL4VsPu5S0JOshPFywbO7vYnGo=";
+
+ patches = [ gpl_symbols_linux_615_patch ];
};
};
}