From 192ac6ac34b3f905d60e4135973d04553fe06982 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Tue, 23 Dec 2025 20:17:39 -0500 Subject: [PATCH] Revert "nixos/nixos-generate-config: fix intel-npu imports" --- .../installer/tools/nixos-generate-config.pl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index bbd0a093b998..77139976e7ad 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -205,15 +205,10 @@ sub pciCheck { ($device eq "0x4229" || $device eq "0x4230" || $device eq "0x4222" || $device eq "0x4227"); - # Intel NPU driver - # list taken from linux(v6.18): drivers/accel/ivpu/ivpu_drv.h - if ($vendor eq "0x8086" && - ($device eq "0xfd3e" || $device eq "0x7d1d" || $device eq "0xad1d" || - $device eq "0x643e" || $device eq "0xb03e")) - { - push @imports, "(modulesPath + \"/hardware/cpu/intel-npu.nix\")"; - push @attrs, "hardware.cpu.intel.npu.enable = true;"; - } + push @attrs, "hardware.cpu.intel.npu.enable = true;" if + $vendor eq "0x8086" && + ($device eq "0x7d1d" || $device eq "0xad1d" || + $device eq "0x643e" || $device eq "0xb03e"); # Assume that all NVIDIA cards are supported by the NVIDIA driver. # There may be exceptions (e.g. old cards).