2024-06-16 10:45:50 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
2024-06-18 03:20:22 -04:00
|
|
|
../../common/gpu/nvidia/prime.nix
|
2024-06-16 10:45:50 -04:00
|
|
|
];
|
2024-06-18 10:53:21 -04:00
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "nvidia" ];
|
|
|
|
|
2024-06-16 10:45:50 -04:00
|
|
|
hardware.opengl = {
|
2024-06-16 11:50:10 -04:00
|
|
|
enable = lib.mkDefault true;
|
|
|
|
driSupport = lib.mkDefault true;
|
|
|
|
driSupport32Bit = lib.mkDefault true;
|
2024-06-16 10:45:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware.nvidia = {
|
|
|
|
|
2024-06-18 10:53:21 -04:00
|
|
|
# modesetting.enable = lib.mkDefault true;
|
2024-06-16 10:45:50 -04:00
|
|
|
|
2024-06-16 11:50:10 -04:00
|
|
|
powerManagement.finegrained = lib.mkDefault true;
|
2024-06-16 10:45:50 -04:00
|
|
|
|
|
|
|
prime = {
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|