Repository navigation
Description
Edited by @me-and to format code parts for easier reading
Nixpkgs version
- Unstable (26.11)
Describe the bug
After updating nixpkgs in my flake.lock, building my NixOS system fails while
building the Linux kernel module aggregation derivation.
The relevant error is:
cat: kernel/drivers/hwmon/zenpower/zenpower.ko.cer: No such file or directory
cat: misc/acpi_call.ko.cer: No such file or directoryThe failure appears related to commit 6bd7526
("aggregateModules: merge certificates from external modules"), which
generates module certificate paths from modules.dep and tries to concatenate
them into modules.cer. The kernel/module-signing change in c736bb8
("linux: generate deterministic module signatures and certificates") may
also be relevant.
My configuration adds these external modules:
boot = lib.mkIf config.services.tlp.enable {
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
};
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];Both packages are taken from config.boot.kernelPackages.
The failing derivation is:
/nix/store/q04gy37ysfvpzmzvm1dqv8dqw8s1079b-linux-7.2.11-modules.drv
Steps to reproduce
Use nixpkgs 353adf2
Add
boot = {
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
};to the config. Do nixos-rebuild switch.
Minimal reproducer
Expected behaviour
Kernel module aggregation does not fail.
Screenshots
No response
Relevant log output
❯ nix log /nix/store/q04gy37ysfvpzmzvm1dqv8dqw8s1079b-linux-7.2.11-modules.drv
structuredAttrs is enabled
created 363 symlinks in user environment
structuredAttrs is enabled
kernel version is 7.2.11
cat: kernel/drivers/hwmon/zenpower/zenpower.ko.cer: No such file or directory
cat: misc/acpi_call.ko.cer: No such file or directoryAdditional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 7.2.10, NixOS, 26.11 (Zokor), 26.11.20261012.6aa7ad7 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.35.3 - channels(…):
"home-manager, nixgl, nixpkgs" - channels(root):
"nixos" - nixpkgs:
/nix/store/wzd256m3cw2wihaxdky68c01h8qycipy-nixpkgs/nixpkgs
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Activity
emilazy commentedon Oct 17, 2026
Thanks for the report. This is a bug in the
linuxPackages.acpi_callandlinuxPackages.zenpowerpackaging; they’re not going through the Kbuild module installation flow. That also means they weren’t getting compressed before.linuxPackages.acpi_callhas an upstreaminstalltarget that passes through to the Kbuildmodules_install, so it just needs to add"INSTALL_MOD_PATH=${placeholder "out"}"to itsmakeFlags, drop the explicitinstall(1)of the module, and move the additional one topostInstall. (It may also want"DEPMOD=true"to silence a warning, although perhaps we should put that in the globalkernelModuleMakeFlags.) cc @7c6f434c @Mic92 as maintainers.linuxPackages.zenpowerneedskernelModuleMakeFlagsin itsmakeFlagsalong with the same changes to it aslinuxPackages.acpi_call. The upstream Makefile doesn’t expose the Kbuildinstall_modulestarget, so in addition to those, it’ll have to setinstallTargets = [ "modules_install" ];andinstallFlags = [ "-C" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" "M=$(PWD)" ];. cc @alexbakker @Artturin as maintainers.linuxPackages.system76: install module through modules_install
linuxPackages.system76-io: install modules through modules_install
linuxPackages.framework-laptop-kmod: install module through modules_i…
Hold nixpkgs at 55bfb4d: the new kernel module aggregator breaks vmwa…
camini commentedon Oct 20, 2026
Another affected package: xpad-noone
Same failure as in this issue, hit on a full system build with xpad-noone in boot.extraModulePackages (together with xpadneo, xone, v4l2loopback).
nixpkgs 09063bd (2026-10-17), kernel linux_6_18 (6.18.57)
nixos-rebuild build fails in linux-6.18.57-modules.drv:
xpad-noone’s installPhase copies the .ko by hand (install *.ko) instead of using modules_install, so no .ko.cer is generated.
fix(overlays): build nixpkgs 09063bd on p620 and razer
chore(deps): daily flake input updates (#2338)
camini commentedon Oct 20, 2026
Two more affected packages: hid-fanatecff and new-lg4ff (follow-up to my xpad-noone comment above)
Same context: nixpkgs 09063bd (2026-10-17), linux_6_18 (6.18.57), module aggregated with aggregateModules the way nixos/modules/system/boot/kernel.nix does it.
linuxPackages.hid-fanatecff (0.2.3) builds, but its output has no .ko.cer, so aggregation fails:
It passes kernelModuleMakeFlags, but the upstream Makefile’s install target just does cp hid-fanatec.ko ${MODULEDIR} rather than going through Kbuild’s modules_install.
linuxPackages.new-lg4ff (0.5.0) doesn’t build at all. It fails in configurePhase:
Its preConfigure expands kernelModuleMakeFlags into makeFlagsArray+=( ... ) via builtins.concatStringsSep, and that list contains cmd_sign=...$(space)$@, which looks like what bash is trying to run as a command. I haven’t confirmed this beyond the log.
I couldn’t find existing issues or PRs for either (searched fanatecff, new-lg4ff, lg4ff since 2026-10-08, so the search is narrow).
fix(nixos): zenpower を modules_install 経由でビルドして aggregateModules の失敗を…
teto commentedon Oct 20, 2026
had issues with ddcci as well
fix(flake): pin nixpkgs to 55bfb4d to unblock kernel modules (#111)
AbdulrahmanNahhas commentedon Oct 20, 2026
I have the same problem
SuperSandro2000 commentedon Oct 20, 2026
openrazer PR #576293
91 remaining items
fix(boot): let zenpower sign via modules_install
chore(fenris): drop openrazer kernel module workaround
vpayno commentedon Nov 13, 2026
ajantv2 PR #587470
vpayno commentedon Nov 13, 2026
asus-ec-sensors PR: #587487
linuxPackages.rtl8189es: install module through modules_install
vpayno commentedon Nov 14, 2026
linuxPackages.it87 PR: #587980
vpayno commentedon Nov 14, 2026
linuxPackages.liquidtux PR: #588270
fix: remove sysdig
vpayno commentedon Nov 15, 2026
linuxPackages.qc71_laptop PR: #588440
vpayno commentedon Nov 15, 2026
linuxPackages.r8168 PR: #588453
vpayno commentedon Nov 15, 2026
linuxPackages.rtl8821cu PR: #588465
vpayno commentedon Nov 15, 2026
linuxPackages.rtw88 PR: #588490
fix(pkgs/zhaoxin): install kernel modules via modules_install
thyTwilightGoth commentedon Nov 28, 2026
corefreg packages appears to be affected as well.
giorgiga commentedon Nov 30, 2026
tp_smapi,thinkpad_ec, andhdapsdseem to have the same issue.There are several open issues for other modules as well.
edit: PR for
tp_smapi(which covers the three missing certs above): #595556