Repository navigation
mini: lifeline daemons wait for /nix/store so they survive a reboot - #60
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude review: no issues found Checked the full diff (tailscaled.nix, cloudflared-ssh.nix) for bugs; no CLAUDE.md files exist in the repo. The switch to nix-darwin's Approved: all approval conditions hold. |
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.
mini rebooted on 10-28, and since then neither of its nix-managed ssh lifelines,
org.jgoon.tailscaledandorg.jgoon.cloudflared-ssh, has been running. Both exited once with 78 (EX_CONFIG), and launchd never started them again. mini was reachable only because of the hand-madeorg.jgoon.cloudflared-ssh-recoveryLaunchAgent, which runs brew's cloudflared and only while someone is logged in.make doctorcaught the tailscaled half of this.Cause: both plists exec straight into
/nix/store, and at boot launchd can start them before the nix volume is mounted. A spawn failure counts asEX_CONFIG, which launchd doesn't retry,KeepAliveor not. Both daemons now use nix-darwin'scommand, which wraps them in/bin/wait4path /nix/store &&(Home Manager agents such as auto-compact already get that wrapper). The binaries and arguments are the same as before.Checked:
darwinConfigurations.mini.systembuilds, and both generated plists are the old command behind/bin/sh -c "/bin/wait4path /nix/store && exec …".Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code