From 941cc559d4b8504d341f739b42c9085d6bd180bc Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 8 Nov 2024 10:58:10 -0800 Subject: Enable Nvidia Optimus PRIME @ginaz --- hosts/ginaz/hardware-configuration.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hosts/ginaz/hardware-configuration.nix b/hosts/ginaz/hardware-configuration.nix index f8a58f8..a4c479c 100644 --- a/hosts/ginaz/hardware-configuration.nix +++ b/hosts/ginaz/hardware-configuration.nix @@ -42,6 +42,17 @@ [ { device = "/dev/disk/by-label/swap"; } ]; - hardware.bluetooth.enable = true; - #hardware.bluetooth.powerOnBoot = true; + hardware = { + bluetooth.enable = true; + #bluetooth.powerOnBoot = true; + + nvidia.prime = { + amdgpuBusId = "PCI:4:0:0"; + nvidiaBusId = "PCI:1:0:0"; + offload = { + enable = true; + enableOffloadCmd = true; + }; + }; + }; } -- cgit v1.2.3