Skip to content

linuxPackages.framework-laptop-kmod: install module through modules_install - #575818

Merged
stepbrobd merged 1 commit into
NixOS:masterfrom
svistoi:fix/framework-laptop-kmod
Oct 20, 2026
Merged

stepbrobd merged 1 commit into
NixOS:masterfrom
svistoi:fix/framework-laptop-kmod

Conversation

@svistoi

@svistoi svistoi commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Related to issue report #575192

I am using nixos-hardware framework/13-inch/common/default.nix profile, which fails with against fa60a5b which introduced recently via #571181 module signatures

        > kernel version is 7.2.11
        > cat: extra/framework_laptop.ko.cer: No such file or directory

Things done

Remove copying the kernel module and lets Kbuild install (and thus sign) it, so the .ko.cer that the module aggregator expects actually exists.

…nstall

Installing the module by hand bypasses Kbuild's module installation
flow, which since NixOS#571181 is what signs each module with kmodigest and
installs its per-module certificate. The package therefore only
produced `framework_laptop.ko`, and building `system.modulesTree`
failed while concatenating the certificates of external modules:

    cat: extra/framework_laptop.ko.cer: No such file or directory

Install via `modules_install` so the module is signed and its
certificate is installed alongside it, matching the other kernel
module packages fixed in this way.

See NixOS#575192.
@nixpkgs-ci
nixpkgs-ci Bot requested a review from gaykitty October 19, 2026 02:03
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Oct 19, 2026
@svistoi

svistoi commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 575818
Commit: e81ffa28fd6639477befaa7fd2a925a5943e130c


x86_64-linux

✅ 9 packages built:
  • linuxKernel.packages.linux_6_1.framework-laptop-kmod
  • linuxPackages.framework-laptop-kmod (linuxKernel.packages.linux_6_18.framework-laptop-kmod)
  • linuxKernel.packages.linux_6_12.framework-laptop-kmod
  • linuxKernel.packages.linux_6_6.framework-laptop-kmod
  • linuxKernel.packages.linux_7_2.framework-laptop-kmod
  • linuxPackages_xanmod.framework-laptop-kmod (linuxKernel.packages.linux_xanmod.framework-laptop-kmod)
  • linuxPackages_xanmod_latest.framework-laptop-kmod (linuxKernel.packages.linux_xanmod_latest.framework-laptop-kmod, linuxPackages_xanmod_stable.framework-laptop-kmod)
  • linuxPackages_zen.framework-laptop-kmod (linuxKernel.packages.linux_zen.framework-laptop-kmod)
  • linuxPackages_latest.framework-laptop-kmod

@mjm mjm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this fixes being able to use the module on latest nixos-unstable for me.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 20, 2026
@svistoi

svistoi commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

FWIW I installed and tested this on my framework laptop prior to putting up the PR

@stepbrobd
stepbrobd added this pull request to the merge queue Oct 20, 2026
Merged via the queue into NixOS:master with commit 82139be Oct 20, 2026
35 checks passed
jordangarrison added a commit to jordangarrison/nix-config that referenced this pull request Oct 20, 2026
The new kernel module aggregation requires a .ko.cer for each external
module, and unstable's framework-laptop-kmod doesn't install one. Take
master's fixed package (NixOS/nixpkgs#575818) until it reaches
nixos-unstable-small.
reedriley pushed a commit to reedriley/nixpkgs that referenced this pull request Oct 21, 2026
kubkon added a commit to kubkon/nix-linux-config that referenced this pull request Oct 21, 2026
…ing (#3)

nixpkgs now signs kernel modules with kmodigest and the modules aggregator
requires a .ko.cer next to every .ko (NixOS/nixpkgs#575192).
framework-laptop-kmod installs its .ko by hand and so fails the
linux-7.3-modules build. Replicate the upstream fix (NixOS/nixpkgs#575818)
via an override on boot.kernelPackages until it reaches nixos-unstable.
lanice added a commit to lanice/nixhome that referenced this pull request Oct 21, 2026
nixpkgs dropped forgejo-runner from services.gitea-actions-runner: move boba
to services.forgejo-runner, authenticating with the existing registration's
uuid and runner token (the agenix secret now holds that token, not the
registration token). The new module doesn't set DOCKER_HOST for podman and
only owns the instance StateDirectory, so set DOCKER_HOST explicitly and move
NIX_GCROOT_DIR under forgejo-runner/boba.

Kernel module signing now needs a .ko.cer per external module; sign
framework-laptop-kmod with kmodigest on longjing until NixOS/nixpkgs#575818
reaches nixos-unstable.
britter added a commit to britter/nix-configuration that referenced this pull request Oct 22, 2026
The kernel modules of the framework-13 host failed to build because
linuxPackages_latest.framework-laptop-kmod installs the bare module with
`install` instead of `modules_install`. Kernel modules are signed with
kmodigest, which produces a per-module certificate next to the module,
and the NixOS module tree aggregator concatenates the certificates of
external modules into `modules.cer`. The custom installPhase drops the
certificate, so the build fails with `cat: extra/framework_laptop.ko.cer:
No such file or directory`. Backport the upstream fix
(NixOS/nixpkgs#575818), which installs through
`modules_install` and ships the module together with its certificate.

Additionally disable calibre speech support: calibre's test suite fails
with `ModuleNotFoundError: No module named 'speechd'` because the
speechd package in nixos-unstable never builds its Python bindings
(its configure script cannot find a Python interpreter, which is only
in buildInputs while speechd sets strictDeps). Fixing that would
rebuild every consumer of speechd, so drop the speech-dispatcher TTS
integration (and piper-tts) from calibre until the packaging bug is
fixed upstream.

Also disable audacity, which currently fails to build for unrelated
reasons.
britter added a commit to britter/nix-configuration that referenced this pull request Oct 22, 2026
* overlays: apply unmerged patch to python fabric
  The fabric package is required by azure-cli which is required by
  seeq-support.nix
* nextcloud: repo adminpassFile
  It was dropped from nixpkgs in
  NixOS/nixpkgs#571775.
* system-base: drop eMudhra fix
  It was merged into nixpkgs in
  NixOS/nixpkgs#576390.
* framework-13: fix issues introduced by flake update
  Backport the upstream fix
  NixOS/nixpkgs#575818
* calibre: disable speech support
  the speechd package in nixos-unstable never builds its Python
  bindings
* desktop-essentials: remove audacity because of build failures
foldu added a commit to foldu/nixos-config that referenced this pull request Oct 23, 2026
framework-laptop-kmod installs its .ko by hand, which bypasses the
modules_install step that signs modules with kmodigest and writes the
per-module .ko.cer the modules aggregator merges. venus' modules tree
therefore failed with `cat: extra/framework_laptop.ko.cer: No such file or
directory`. Fixed upstream in NixOS/nixpkgs#575818, which is in
nixos-unstable-small but landed six hours after nixos-unstable last advanced.

Co-authored-by: DeepSeek-V4.1-Flash <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants