Skip to content

nix: fix NixOS tarball evaluation with pinned nixpkgs - #398

Open
DananjayaNadun wants to merge 1 commit into
ravindu644:mainfrom
DananjayaNadun:fix/nixos-journald-compat
Open

DananjayaNadun wants to merge 1 commit into
ravindu644:mainfrom
DananjayaNadun:fix/nixos-journald-compat

Conversation

@DananjayaNadun

@DananjayaNadun DananjayaNadun commented Nov 20, 2026 •

Copy link
Copy Markdown

Closes #387.

The NixOS rootfs module uses services.journald.settings.Journal for compatibility with newer Nixpkgs (#309). The project's three pinned Nixpkgs revisions still use storage, audit, and extraConfig. The documented tarball build therefore fails during module evaluation.

Select the journald interface declared by the importing NixOS module and share the five free-form settings between both paths. Both versions configure volatile storage and disable auditing.

Verification

With Nix 2.31.2 on x86_64 Linux, I reproduced the missing-option error on cdadb9eb for both the AArch64 minimal and minimal-with-systemd-v259 targets.

With this change, I evaluated the generated environment.etc."systemd/journald.conf".text on each of the three locked Nixpkgs revisions and on the upstream migration commit 41dc9cb4d6990e28f3ef63c9d88ecb24ebeda8eb. All seven directives matched, including disabled audit (false on the older revisions and no on the newer one).

The table summarizes the tarball checks on the patched commit.

Target Variants evaluated Archive built and inspected
x86_64-linux All four minimal
aarch64-linux All four Evaluation only

To repeat an evaluation, substitute the target and variant in nix eval --raw .#nixosDroidspacesTarballs.aarch64-linux.minimal.drvPath. To build the native image on x86_64 Linux, run nix build .#nixosDroidspacesTarballs.x86_64-linux.minimal. I extracted the journal configuration from the resulting 201 MiB archive and verified it matched the generated file byte for byte.

The tarballs use nixpkgs revisions that predate services.journald.settings. Select the option interface exposed by the importing module so downstream users on newer nixpkgs keep their journal configuration too.

Signed-off-by: Dananjaya Nadun <109723009+DananjayaNadun@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: nixosDroidspacesTarballs.minimal fails: pinned nixpkgs lacks services.journald.settings

1 participant