2024-05-20 04:06:05 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [
|
2024-10-10 19:04:47 +02:00
|
|
|
../../../common/cpu/intel/tiger-lake
|
2024-05-20 04:06:05 +02:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
../../battery.nix
|
|
|
|
];
|
|
|
|
|
2024-09-29 14:21:08 +02:00
|
|
|
# while tiger-lake in general not supported by xe, some chipsets like this one are.
|
|
|
|
hardware.intelgpu.driver = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") "xe";
|
|
|
|
|
2024-05-20 04:06:05 +02:00
|
|
|
boot.kernelParams = lib.mkIf (config.hardware.intelgpu.driver == "xe") [
|
|
|
|
"i915.force_probe=!9a49"
|
|
|
|
"xe.force_probe=9a49"
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
|
|
|
services.thermald.enable = lib.mkDefault true;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
}
|