Agent skill
nix-config
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/nix-config
SKILL.md
Nix Config
Declarative macOS environment at ~/nix-config. See the repo's CLAUDE.md for full architecture.
Adding Packages
CLI tools → users/tengjizhang/home/packages.nix
home.packages = with pkgs; [
ripgrep
jq
# ...
];
GUI apps → users/tengjizhang/darwin.nix
homebrew.casks = [ "raycast" "obsidian" ];
Third-party taps → Use full tap/cask path:
homebrew.casks = [ "steipete/tap/codexbar" ];
Mac App Store → users/tengjizhang/darwin.nix
homebrew.masApps = { "Things" = 904280696; };
npm Package Pattern
For latest npm packages, use pnpm dlx wrapper:
(writeShellScriptBin "toolname" ''
exec ${pnpm}/bin/pnpm dlx @scope/package@latest "$@"
'')
Examples in packages.nix: claude, codex, gemini, gccli
Rebuild
cd ~/nix-config && make switch > /tmp/nix-switch.log 2>&1 && echo "✓ Switch succeeded" || echo "✗ Switch failed (see /tmp/nix-switch.log)"
Workflow
- Edit the appropriate .nix file
- Commit changes (keeps git clean before rebuild)
make switchto rebuild and activate- Push changes
Key Files
flake.nix- Inputs/outputs, system definitionusers/tengjizhang/home/packages.nix- CLI packagesusers/tengjizhang/home/programs.nix- Program configs (git, neovim, etc.)users/tengjizhang/darwin.nix- Homebrew, macOS settings
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?