framework/13-inch/intel-core-ultra-series1: add check for hardware.enableRedistributableFirmware (#1367)

This commit is contained in:
Nicky Mouha 2025-02-24 02:54:44 -05:00 committed by GitHub
parent f75203cc31
commit 9b49e20140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ imports = [
@ -12,7 +12,7 @@
# Intel NPU Driver # Intel NPU Driver
# https://discourse.nixos.org/t/new-installation-on-asus-zenbook-ux5406-intel-vpu-firmware-error-2/58732/2 # https://discourse.nixos.org/t/new-installation-on-asus-zenbook-ux5406-intel-vpu-firmware-error-2/58732/2
hardware.firmware = [ hardware.firmware = lib.optionals (config.hardware.enableRedistributableFirmware) [
( (
let let
model = "37xx"; model = "37xx";
@ -29,4 +29,9 @@
'' ''
) )
]; ];
warnings = lib.mkIf (!config.hardware.enableRedistributableFirmware) [
''For Intel NPU support, set the option: hardware.enableRedistributableFirmware = true;''
];
} }