mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
apple-imac-18-2: add imac, add imac-18-2
This commit is contained in:
parent
d3ef6d0c7c
commit
40e296b2b3
3 changed files with 64 additions and 0 deletions
26
apple/imac/18-2/README.md
Normal file
26
apple/imac/18-2/README.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# iMac 18,2, NixOS 24.05 (2024)
|
||||||
|
|
||||||
|
## Audio
|
||||||
|
[ ] broken, PR pending: https://github.com/NixOS/nixpkgs/pull/322968
|
||||||
|
|
||||||
|
## Bluetooth
|
||||||
|
[ ] broken, PR pending: https://github.com/NixOS/nixpkgs/pull/322964
|
||||||
|
|
||||||
|
## Thunderbolt
|
||||||
|
[x] ok
|
||||||
|
|
||||||
|
## SATA
|
||||||
|
[x] ok
|
||||||
|
|
||||||
|
## NVME
|
||||||
|
[x] ok, older NVME / Controller may need workaround for resume
|
||||||
|
|
||||||
|
## Suspend/Resumer
|
||||||
|
[ ] Thunderbolt, WIFI, NVME may still need reboot (sometimes).
|
||||||
|
|
||||||
|
## Wifi
|
||||||
|
[x] Working (2,4Ghz & 5Ghz supported), WEP3 broken -> brcm fw blob (2015)
|
||||||
|
|
||||||
|
## Resources (Intel iMac/MacBook share similar custom hardware)
|
||||||
|
- https://github.com/Dunedan/mbp-2016-linux?tab=readme-ov-file
|
||||||
|
- https://gist.github.com/roadrunner2/1289542a748d9a104e7baec6a92f9cd7
|
30
apple/imac/18-2/default.nix
Normal file
30
apple/imac/18-2/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../common/cpu/intel/kaby-lake
|
||||||
|
../../../common/gpu/intel
|
||||||
|
../../../common/gpu/amd
|
||||||
|
../../../common/hidpi.nix
|
||||||
|
../../../common/pc/laptop/ssd
|
||||||
|
../../../common/pc/laptop/acpi_call.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Wifi, CPU Microcode FW updates
|
||||||
|
networking.enableB43Firmware = lib.mkDefault true;
|
||||||
|
hardware = {
|
||||||
|
enableRedistributableFirmware = lib.mkDefault true;
|
||||||
|
cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
}
|
8
apple/imac/default.nix
Normal file
8
apple/imac/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../common/cpu/intel
|
||||||
|
../../common/pc/laptop
|
||||||
|
../../common/pc/laptop/ssd
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue