mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	framework/13-inch/intel-core-ultra-series1: Add Intel NPU firmware
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							d1f201fc62
						
					
				
				
					commit
					2eccff41ba
				
			@@ -9,4 +9,24 @@
 | 
			
		||||
  # Need at least 6.9 to make suspend properly
 | 
			
		||||
  # Specifically this patch: https://github.com/torvalds/linux/commit/073237281a508ac80ec025872ad7de50cfb5a28a
 | 
			
		||||
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.9") (lib.mkDefault pkgs.linuxPackages_latest);
 | 
			
		||||
 | 
			
		||||
  # Intel NPU Driver
 | 
			
		||||
  # https://discourse.nixos.org/t/new-installation-on-asus-zenbook-ux5406-intel-vpu-firmware-error-2/58732/2
 | 
			
		||||
  hardware.firmware = [
 | 
			
		||||
    (
 | 
			
		||||
      let
 | 
			
		||||
        model = "37xx";
 | 
			
		||||
        version = "0.0";
 | 
			
		||||
 | 
			
		||||
        firmware = pkgs.fetchurl {
 | 
			
		||||
          url = "https://github.com/intel/linux-npu-driver/raw/v1.13.0/firmware/bin/vpu_${model}_v${version}.bin";
 | 
			
		||||
          hash = "sha256-Mpoeq8HrwChjtHALsss/7QsFtDYAoFNsnhllU0xp3os=";
 | 
			
		||||
        };
 | 
			
		||||
      in
 | 
			
		||||
      pkgs.runCommand "intel-vpu-firmware-${model}-${version}" { } ''
 | 
			
		||||
        mkdir -p "$out/lib/firmware/intel/vpu"
 | 
			
		||||
        cp '${firmware}' "$out/lib/firmware/intel/vpu/vpu_${model}_v${version}.bin"
 | 
			
		||||
      ''
 | 
			
		||||
    )
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user