From 9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Mon, 21 Oct 2024 00:57:12 -0700 Subject: Add nVidia patches --- hosts/arrakis/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hosts/arrakis/hardware-configuration.nix') diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix index e1b7dc0..122fde4 100644 --- a/hosts/arrakis/hardware-configuration.nix +++ b/hosts/arrakis/hardware-configuration.nix @@ -3,6 +3,9 @@ # to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: +let + package = config.boot.kernelPackages.nvidiaPackages.beta; +in { imports = [ #(modulesPath + "/installer/scan/not-detected.nix") @@ -98,7 +101,7 @@ nvidia = { modesetting.enable = true; open = true; - package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta); + package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package); }; }; } -- cgit v1.2.3