Skip to content

fix(image-spec): enable nix-command and flakes in determinate installer#52

Open
jld-adriano wants to merge 2 commits intopinned-d08a784aefrom
devin/fix-nix-experimental-features
Open

fix(image-spec): enable nix-command and flakes in determinate installer#52
jld-adriano wants to merge 2 commits intopinned-d08a784aefrom
devin/fix-nix-experimental-features

Conversation

@jld-adriano
Copy link
Copy Markdown

@jld-adriano jld-adriano commented Apr 16, 2026

Why are the changes needed?

The NIX_DOCKER_FILE_TEMPLATE installs Nix via the Determinate installer and then runs nix run .#docker.copyTo to build the image. Newer Determinate installers ship with experimental-features unset by default, so the later nix run fails with:

error: experimental Nix feature 'nix-command' is disabled;
add '--extra-experimental-features nix-command' to enable it

This broke every nix=True ImageSpec build in CI (see failing jobs on exa-labs/monorepo#30215: ray-test, elastic-multi-to-multi, elastic-multi-to-single, elastic-single-to-multi-node, elastic-single-to-multi-process).

What changes were proposed in this pull request?

Pass --extra-conf "experimental-features = nix-command flakes" to the Determinate installer in the same place as the other --extra-conf flags. This writes the setting to /etc/nix/nix.conf at install time, so the subsequent nix run has nix-command and flakes enabled.

Base branch is pinned-d08a784ae (the commit exa-labs/monorepo currently pins) so the diff is just the one-line addition, isolated from the 19 other commits on master.

How was this patch tested?

Will be verified end-to-end by re-running the Basic Flyte Feature Tests on exa-labs/monorepo after bumping the flytekit pointer.

Check all the applicable boxes

  • All commits are signed-off.

Link to Devin session: https://app.devin.ai/sessions/98d8186c6d3147738bd209459fcfac5b
Requested by: @jld-adriano


Open with Devin

Pass 'experimental-features = nix-command flakes' via --extra-conf so that the
later 'nix run .#docker.copyTo' step works. Without this, newer determinate
installers leave nix-command disabled and the build fails with:

  error: experimental Nix feature 'nix-command' is disabled;
  add '--extra-experimental-features nix-command' to enable it

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@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.

1 participant