fix: provision AIR Cloud without Nix - #371
Merged
Merged
Conversation
Provisions Nix (no-daemon, since these sandboxes lack systemd) and fixes /nix ownership so the unprivileged workspace user can run `nix develop`, matching the flake-based dev shell the project already uses locally. Also best-effort seeds Codex's config.toml with xhigh reasoning effort, since the platform's launch API does not expose that as a first-class option and config.toml is only honored if present before the CLI starts.
The previous version only chowned /nix inside the "we just installed nix" branch, so a pre-baked/pre-owned /nix (root-owned regardless of who ran this script) skipped the fix entirely. Move the ownership check so it always runs and only chowns when the target user doesn't already own it.
Co-Authored-By: Codex <codex@air.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$HOME/.localNix was abandoned because AIR Cloud sandboxes run as an unprivileged user and the existing
/nixis root-owned; neither installation nor ownership repair is possible without sudo.Validation
zig build --summary all: 20/20 steps succeededzig build test --summary all: 20/20 steps succeeded; 373/374 tests passed; 1 skippedjust lint: All checks passed; test registry passed; zwanzig found no issuesCold sandbox timing observed
zig build runwas intentionally not attempted because AIR Cloud is headless.