Skip to content

docker: make sure nix config check works (backport #13351)#13627

Merged
mergify[bot] merged 1 commit into2.28-maintenancefrom
mergify/bp/2.28-maintenance/pr-13351
Jul 31, 2025
Merged

docker: make sure nix config check works (backport #13351)#13627
mergify[bot] merged 1 commit into2.28-maintenancefrom
mergify/bp/2.28-maintenance/pr-13351

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jul 30, 2025

Motivation

This current PR addresses a small issue I encountered during the making of #13354.

When running nix config check inside the official Nix Docker image, the following failure was raised:

bash-5.2# nix config check
[PASS] PATH contains only one nix version.
[FAIL] Found profiles outside of /nix/var/nix/profiles.
The generation this profile points to might not have a gcroot and could be
garbage collected, resulting in broken symlinks.

  "/root/.nix-profile/bin"

[PASS] Client protocol matches store protocol.
[INFO] You are trusted by store uri: local

This PR proposes a fix for that issue. I would appreciate any feedback on the approach, and I am happy to adjust the implementation if needed.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.


This is an automatic backport of pull request #13351 done by [Mergify](https://mergify.com).

@mergify mergify bot added the automatic backport This PR is a backport produced by automation (does not trigger backporting) label Jul 30, 2025
@mergify mergify bot requested a review from edolstra as a code owner July 30, 2025 12:45
@mergify mergify bot added the merge-queue label Jul 30, 2025
mergify bot added a commit that referenced this pull request Jul 30, 2025
mergify bot added a commit that referenced this pull request Jul 30, 2025
@mergify mergify bot merged commit 2b4e25b into 2.28-maintenance Jul 31, 2025
27 checks passed
@mergify mergify bot deleted the mergify/bp/2.28-maintenance/pr-13351 branch July 31, 2025 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automatic backport This PR is a backport produced by automation (does not trigger backporting) merge-queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant