diff --git a/hosts/skadi/configuration.nix b/hosts/skadi/configuration.nix index 349b121..44be65e 100644 --- a/hosts/skadi/configuration.nix +++ b/hosts/skadi/configuration.nix @@ -68,26 +68,6 @@ hardware.nvidia = { modesetting.enable = true; open = true; - # Apply CachyOS kernel 6.19 patch to NVIDIA latest driver - package = let - base = config.boot.kernelPackages.nvidiaPackages.latest; - cachyos-nvidia-patch = pkgs.fetchpatch { - url = "https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/master/nvidia/nvidia-utils/kernel-6.19.patch"; - sha256 = "sha256-YuJjSUXE6jYSuZySYGnWSNG5sfVei7vvxDcHx3K+IN4="; - }; - - # Patch the appropriate driver based on config.hardware.nvidia.open - driverAttr = - if config.hardware.nvidia.open - then "open" - else "bin"; - in - base - // { - ${driverAttr} = base.${driverAttr}.overrideAttrs (oldAttrs: { - patches = (oldAttrs.patches or []) ++ [cachyos-nvidia-patch]; - }); - }; nvidiaSettings = true; powerManagement.enable = true; };