diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-11-08 11:05:28 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-11-08 11:05:28 -0800 |
commit | ac3e94d7e05bad0ef393b29f7cbd81b03547858d (patch) | |
tree | a7b949acaf19335aae74e588683aee276afceab9 /hosts/ginaz | |
parent | 941cc559d4b8504d341f739b42c9085d6bd180bc (diff) | |
download | nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar.gz nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar.bz2 nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar.lz nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar.xz nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.tar.zst nix-ac3e94d7e05bad0ef393b29f7cbd81b03547858d.zip |
Add Nvidia drivers @ginaz
Diffstat (limited to 'hosts/ginaz')
-rw-r--r-- | hosts/ginaz/hardware-configuration.nix | 22 |
1 files changed, 16 insertions, 6 deletions
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; + }; }; }; }; |