From e6fbe2b798b3711e4fedbd7c3c6293aa6aac1270 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 7 Apr 2026 01:35:26 +0200 Subject: [PATCH 1/2] nixos/modules: import intel-npu module This was missed twice during review. --- nixos/modules/module-list.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 10d04094dd74..ee38f638dfcf 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -61,6 +61,7 @@ ./hardware/cpu/amd-ryzen-smu.nix ./hardware/cpu/amd-sev.nix ./hardware/cpu/intel-microcode.nix + ./hardware/cpu/intel-npu.nix ./hardware/cpu/intel-sgx.nix ./hardware/cpu/x86-msr.nix ./hardware/decklink.nix From 44cdcdf7aa52a4a71eaaae0bc215a71a4f297e18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 7 Apr 2026 01:36:04 +0200 Subject: [PATCH 2/2] nixos/nixos-generate-config: drop intel-npu import Loading modules at config gen time is wrong. This should only happen for profiles and the options should be available all the time instead. --- nixos/modules/installer/tools/nixos-generate-config.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 1586a09aee5f..3d0f4a9f7d86 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -211,7 +211,6 @@ sub pciCheck { ($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;"; }