nix-rebuild

After changing any Nix-managed config in ~/.config/dotfiles , the system must be rebuilt for changes to take effect. Nix store symlinks are read-only — you cannot edit them in place.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nix-rebuild" with this command: npx skills add edmundmiller/dotfiles/edmundmiller-dotfiles-nix-rebuild

Nix System Rebuild

After changing any Nix-managed config in ~/.config/dotfiles , the system must be rebuilt for changes to take effect. Nix store symlinks are read-only — you cannot edit them in place.

Quick Rebuild

cd ~/.config/dotfiles sudo darwin-rebuild switch --flake .

darwin-rebuild has a NOPASSWD sudoers rule, so this works non-interactively.

Using hey

The hey command wraps rebuilds:

hey rebuild # or: hey re hey test # build + activate without boot entry hey rollback # roll back to previous generation

When to Rebuild

  • After editing any .nix file

  • After editing config files symlinked through home-manager (lazygit, ghostty, etc.)

  • When you see "permission denied" writing to a Nix store path

Workflow

  • Edit source config in ~/.config/dotfiles/

  • Commit changes

  • Run sudo darwin-rebuild switch --flake ~/.config/dotfiles

  • Verify the symlink now points to updated Nix store path

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tmux-status-debug

No summary provided by upstream source.

Repository SourceNeeds Review
General

jj-history-investigation

No summary provided by upstream source.

Repository SourceNeeds Review
General

using-jj-workspaces

No summary provided by upstream source.

Repository SourceNeeds Review
General

agenix-secrets

No summary provided by upstream source.

Repository SourceNeeds Review