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