aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-08 10:58:10 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-08 10:58:10 -0800
commit941cc559d4b8504d341f739b42c9085d6bd180bc (patch)
treedfca663f628a21502a82c3173a8d3ff7fd48c140 /hosts
parent325053e50242cac02a8e5e296b296131d711e483 (diff)
downloadnix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar.gz
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar.bz2
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar.lz
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar.xz
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.tar.zst
nix-941cc559d4b8504d341f739b42c9085d6bd180bc.zip
Enable Nvidia Optimus PRIME @ginaz
Diffstat (limited to 'hosts')
-rw-r--r--hosts/ginaz/hardware-configuration.nix15
1 files 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;
+ };
+ };
+ };
}