aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/ginaz
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-08 11:05:28 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-08 11:05:28 -0800
commitac3e94d7e05bad0ef393b29f7cbd81b03547858d (patch)
treea7b949acaf19335aae74e588683aee276afceab9 /hosts/ginaz
parent941cc559d4b8504d341f739b42c9085d6bd180bc (diff)
downloadnix-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.nix22
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;
+ };
};
};
};