mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 16:16:21 +01:00
Compare commits
5 commits
951ca803cd
...
de0045bcec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de0045bcec | ||
|
|
52113c4f5c | ||
|
|
fc4c7c6ec7 | ||
|
|
744975050f | ||
|
|
cafc32e82b |
|
|
@ -3,3 +3,34 @@
|
|||
### For wifi driver
|
||||
broadcomt_sta was the best working driver I could find, however on the normal kernel, you need to `sudo modprobe -r wl` and `sudo modprobe wl`, however it was fully working on the zen kernel.
|
||||
|
||||
|
||||
# MacBook Air 7,2
|
||||
|
||||
## Issues
|
||||
|
||||
> Wifi Driver doesn't work
|
||||
|
||||
### Solution
|
||||
* generated NixOS-Configuration via nixos-generate config on MacBook to load following modules:
|
||||
|
||||
```nix
|
||||
boot.kernelModules = [ "kvm-intel" "wl" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
```
|
||||
|
||||
|
||||
> Camera doesn't work
|
||||
|
||||
### Solution
|
||||
|
||||
```nix
|
||||
hardware.facetimehd.enable = true;
|
||||
```
|
||||
|
||||
* when added this line of code, another driver was loaded for the network controller, so wifi stopped working.
|
||||
* by adding the modules to boot.initrd. both wifi and camera was working:
|
||||
|
||||
### Solution
|
||||
```nix
|
||||
boot.initrd.kernelModules = [ "kvm-intel" "wl" ];
|
||||
```
|
||||
|
|
|
|||
32
apple/macbook-air/7/hardware-configuration.nix
Normal file
32
apple/macbook-air/7/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "kvm-intel" "wl" ]; # is needed for wifi to work
|
||||
boot.kernelModules = [ "kvm-intel" "wl" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
|
||||
|
||||
## generated Filesystem configuration was removed here!!!
|
||||
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
## Webcam
|
||||
hardware.facetimehd.enable = true;
|
||||
}
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
|
|||
"tps6598x"
|
||||
"xhci_hcd"
|
||||
"usbcore"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"uas"
|
||||
"xhci_plat_hcd"
|
||||
];
|
||||
|
|
@ -56,7 +56,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
|
|||
"tps6598x"
|
||||
"xhci_hcd"
|
||||
"usbcore"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"uas"
|
||||
"xhci_plat_hcd"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
|
||||
initrd.availableKernelModules = [
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4;
|
||||
initrd.availableKernelModules = [
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"vc4"
|
||||
"pcie_brcmstb" # required for the pcie bus to work
|
||||
"pcie-brcmstb" # required for the pcie bus to work
|
||||
"reset-raspberrypi" # required for vl805 firmware to load
|
||||
]
|
||||
++ lib.optional config.boot.initrd.network.enable "genet";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ in
|
|||
initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue