mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	The common/pc/laptop/ssd folder was apparently moved a level up and was replaced by a symlink to keep things working. We can consolidate this now.
		
			
				
	
	
		
			29 lines
		
	
	
		
			693 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			693 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  pkgs,
 | 
						|
  ...
 | 
						|
}: {
 | 
						|
  imports = [
 | 
						|
    ../.
 | 
						|
    ../../../common/cpu/intel/kaby-lake
 | 
						|
    ../../../common/gpu/amd
 | 
						|
    ../../../common/hidpi.nix
 | 
						|
    ../../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  # 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;
 | 
						|
  };
 | 
						|
}
 |