1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-27 03:59:45 +01:00
nixos-hardware/apple/imac/18-2/default.nix

31 lines
774 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: {
imports = [
../.
2024-08-19 09:57:39 +02:00
../../../common/gpu/intel/kaby-lake
../../../common/gpu/intel
../../../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)
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
networking.enableB43Firmware = lib.mkDefault true;
2024-08-19 09:57:39 +02:00
hardware = {
enableRedistributableFirmware = lib.mkDefault true;
cpu.intel.updateMicrocode = lib.mkDefault true;
};
}