2024-06-16 14:45:50 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
2024-06-18 07:20:22 +00:00
|
|
|
../../common/gpu/nvidia/prime.nix
|
2024-06-16 14:45:50 +00:00
|
|
|
];
|
2024-06-18 14:53:21 +00:00
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "nvidia" ];
|
|
|
|
|
2024-06-21 13:44:42 +00:00
|
|
|
hardware.graphics = {
|
2024-06-16 15:50:10 +00:00
|
|
|
enable = lib.mkDefault true;
|
2024-06-21 13:44:42 +00:00
|
|
|
enable32Bit = lib.mkDefault true;
|
2024-06-16 14:45:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware.nvidia = {
|
|
|
|
|
2024-06-18 14:53:21 +00:00
|
|
|
# modesetting.enable = lib.mkDefault true;
|
2024-06-16 14:45:50 +00:00
|
|
|
|
2024-06-16 15:50:10 +00:00
|
|
|
powerManagement.finegrained = lib.mkDefault true;
|
2024-06-16 14:45:50 +00:00
|
|
|
|
|
|
|
prime = {
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|