From ac3e94d7e05bad0ef393b29f7cbd81b03547858d Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 8 Nov 2024 11:05:28 -0800 Subject: Add Nvidia drivers @ginaz --- hosts/ginaz/hardware-configuration.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'hosts/ginaz/hardware-configuration.nix') diff --git a/hosts/ginaz/hardware-configuration.nix b/hosts/ginaz/hardware-configuration.nix index a4c479c..263ac54 100644 --- a/hosts/ginaz/hardware-configuration.nix +++ b/hosts/ginaz/hardware-configuration.nix @@ -46,12 +46,22 @@ bluetooth.enable = true; #bluetooth.powerOnBoot = true; - nvidia.prime = { - amdgpuBusId = "PCI:4:0:0"; - nvidiaBusId = "PCI:1:0:0"; - offload = { - enable = true; - enableOffloadCmd = true; + graphics = { + enable = true; + extraPackages = with pkgs; [ nvidia-vaapi-driver ]; + extraPackages32 = with pkgs.pkgsi686Linux; [ nvidia-vaapi-driver ]; + }; + + nvidia = { + modesetting.enable = true; + open = true; + prime = { + amdgpuBusId = "PCI:4:0:0"; + nvidiaBusId = "PCI:1:0:0"; + offload = { + enable = true; + enableOffloadCmd = true; + }; }; }; }; -- cgit v1.2.3