nix/hosts/laptop/modules/nvidia.nix

31 lines
848 B
Nix
Raw Normal View History

2024-12-02 03:57:34 -07:00
{ ... }:
{
# Configure dual-gpu AMD+Nvidia
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["amdgpu"];
# services.xserver.videoDrivers = ["nvidia" "amdgpu"];
# hardware.nvidia = {
# modesetting.enable = true;
2024-12-02 03:57:34 -07:00
# # Experimental nvidia power management
# powerManagement.enable = false;
2024-12-02 03:57:34 -07:00
# # Experimentally turn off Nvidia GPU when not in use
# powerManagement.finegrained = true;
2024-12-02 03:57:34 -07:00
# open = false; # Open source module is still very much beta
2024-12-02 03:57:34 -07:00
# nvidiaSettings = true;
2024-12-02 03:57:34 -07:00
# # Configure dual-gpu offloading
# prime = {
# amdgpuBusId = "PCI:4:0:0";
# nvidiaBusId = "PCI:1:0:0";
2024-12-02 03:57:34 -07:00
# offload = {
# enable = true;
# enableOffloadCmd = true;
# };
# };
# };
2024-12-02 03:57:34 -07:00
}