2024-06-28 22:38:31 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
../.
|
2024-10-10 19:04:47 +02:00
|
|
|
../../../common/cpu/intel/kaby-lake
|
2024-06-28 22:38:31 +02:00
|
|
|
../../../common/gpu/amd
|
|
|
|
../../../common/hidpi.nix
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
../../../common/pc/laptop/acpi_call.nix
|
|
|
|
];
|
|
|
|
|
2024-08-19 09:57:39 +02:00
|
|
|
# apple smc (TODO: check spi)
|
2024-06-28 22:38:31 +02:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = ["applespi" "spi_pxa2xx_platform" "intel_lpss_pci" "applesmc" ];
|
|
|
|
kernelParams = [ "intel_iommu=on" ];
|
|
|
|
kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
|
|
|
|
};
|
|
|
|
|
2024-08-19 09:57:39 +02:00
|
|
|
# Wifi, CPU Microcode FW updates
|
2024-06-28 22:38:31 +02:00
|
|
|
networking.enableB43Firmware = lib.mkDefault true;
|
2024-08-19 09:57:39 +02:00
|
|
|
hardware = {
|
2024-06-28 22:38:31 +02:00
|
|
|
enableRedistributableFirmware = lib.mkDefault true;
|
|
|
|
cpu.intel.updateMicrocode = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
}
|