2024-07-31 19:12:38 +02:00
|
|
|
{ config, lib, ... }:
|
2024-05-19 23:55:37 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../../common/cpu/intel
|
|
|
|
../../common/gpu/nvidia
|
|
|
|
../../common/gpu/nvidia/prime.nix
|
|
|
|
../../common/pc/laptop
|
|
|
|
../../common/pc/ssd
|
|
|
|
../battery.nix
|
2024-05-20 12:15:58 +02:00
|
|
|
];
|
2024-05-19 23:55:37 +02:00
|
|
|
|
|
|
|
hardware.nvidia =
|
|
|
|
{
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
2024-07-31 19:12:38 +02:00
|
|
|
open = lib.mkIf (lib.versionAtLeast config.hardware.nvidia.package.version "555") true;
|
2024-05-19 23:55:37 +02:00
|
|
|
|
|
|
|
prime =
|
|
|
|
{
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|