Skip to content

fix: handle agent restart during nixos-rebuild, default 4GiB RAM#10

Merged
ethannortharc merged 1 commit intomainfrom
fix/nixos-rebuild-agent-restart
Mar 10, 2026
Merged

fix: handle agent restart during nixos-rebuild, default 4GiB RAM#10
ethannortharc merged 1 commit intomainfrom
fix/nixos-rebuild-agent-restart

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Handle exit 255 from nixos-rebuild (websocket drops when incus-agent restarts during activation)
  • Wait for VM agent to come back after rebuild before continuing provisioning
  • Default Incus VMs to 4GiB RAM (NixOS rebuild evaluation OOM-kills with 1GB default)

Test plan

  • cargo test — all 67 tests pass
  • devbox create --name test --tools go on Linux — should survive the agent restart

🤖 Generated with Claude Code

nixos-rebuild switch stops incus-agent during activation, dropping the
websocket (exit 255). Now we detect this, wait for the agent to restart,
then continue provisioning. Also default Incus VMs to 4GiB memory since
NixOS rebuild evaluation needs 2-4GB (default 1GB causes OOM kills).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit 89bd8f7 into main Mar 10, 2026
0 of 2 checks passed
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