Skip to content

nixos/limine: add installDeviceTree option - #597007

Draft
Moraxyc wants to merge 7 commits into
NixOS:masterfrom
Moraxyc:limine-devicetree
Draft

Moraxyc wants to merge 7 commits into
NixOS:masterfrom
Moraxyc:limine-devicetree

Conversation

@Moraxyc

@Moraxyc Moraxyc commented Dec 3, 2026

Copy link
Copy Markdown
Member

Resolves #596803

Adds boot.loader.limine.installDeviceTree, mirroring boot.loader.systemd-boot.installDeviceTree (defaults to true when hardware.deviceTree.enable is set and hardware.deviceTree.name is non-null).

Each generation records its DTB in the org.nixos.limine bootspec extension so generations and specialisations boot with their own blob, while existing systemd-boot generations keep theirs from org.nixos.systemd-boot. Both the py installer and limine-install-ng copy DTBs to /limine/dtbs and checksum them.

Installer fixes:

  • Name installed files after their full path to prevent DTB collisions across kernel updates (kernels and initrds keep their existing names to avoid re-copying).
  • Re-copy non-store files when they change, and fix the py installer writing a duplicate initrd secrets archive that prevented rotated secrets from reaching the ESP (covered by a new initrdSecrets test).
  • Fail installation on destination name collisions instead of silently overwriting files.

Things done

@nixpkgs-ci nixpkgs-ci Bot 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.

Thanks for contributing to the documentation.

Follow the documentation style guide, especially:

  • Show, don’t tell. Start with a minimal working example. Explain after the code.
  • Avoid meta-commentary. Don’t write "This section explains how to…".
  • Use present tense, imperative mood, and active voice. For example: "Run the command," not "The user should run the following command."
  • Avoid vague references like "this" when the referent is unclear. Write "This command creates a folder," not "This will create a folder."
  • Be direct. Avoid "should", "might", "typically", and "usually".
  • Cut filler words like "simply", "just", "easily", and "basically". Use "to" instead of "in order to".

For larger changes, such as adding or removing whole sections, ask the NixOS documentation team for review.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: documentation This PR adds or changes documentation labels Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

limine: add support for config.hardware.deviceTree

1 participant