with one click
darwin-switch
Apply the nix-darwin configuration to the current machine.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Apply the nix-darwin configuration to the current machine.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | darwin-switch |
| description | Apply the nix-darwin configuration to the current machine. |
| when_to_use | Use when the user asks to "switch", "rebuild", "apply darwin config", "darwin-rebuild", or otherwise wants the current host's nix-darwin configuration applied. Trigger phrases: "switch", "rebuild darwin", "apply the config", "rebuild this machine". |
| allowed-tools | ["AskUserQuestion","Bash(sudo darwin-rebuild switch *)","Bash(hostname)"] |
Apply the nix-darwin configuration on this host.
Use AskUserQuestion to confirm before running. The action requires sudo and rebuilds system state.
darwin-rebuild switch (Recommended)If the user picks "No" or "Other" with anything other than clear consent, stop and report cancellation.
sudo darwin-rebuild switch --flake ~/git/dudeofawesome/nix-config#$(hostname -s)
Summarize the outcome: success, generation number if shown, or any error. On failure, surface the relevant lines from the output — do not retry automatically.