smithery.ai

nix-dev

Develop and debug Nix expressions with evaluation and build tools

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Write, Edit, Grep, Glob
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,703 B
  • docs SUMMARY.md 80 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Develop, debug, and iterate on Nix expressions.

Capabilities

This skill provides access to Nix tooling for development work:

  • nix eval - Evaluate Nix expressions and inspect values
  • nix build - Build derivations
  • nix flake check - Validate flake
  • nix flake show - Show flake outputs
  • nix repl - Interactive exploration (use --expr for non-interactive)
  • nix-instantiate - Debug derivations

Common Workflows

Evaluate an expression:

nix eval .#nixosConfigurations.hostname.config.services.nginx.enable

Evaluate with JSON output:

nix eval --json .#nixosConfigurations.hostname.config.networking.firewall.allowedTCPPorts

Debug a module option:

nix eval .#nixosConfigurations.hostname.config.homelab --apply builtins.attrNames

Check derivation without building:

nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.version'

Build and check:

nix build .#nixosConfigurations.hostname.config.system.build.toplevel --dry-run

Explore flake outputs:

nix flake show --json | jq '.nixosConfigurations | keys'

Debugging Tips

Type errors:

nix eval --show-trace .#problematic.expression

Infinite recursion:

nix eval --show-trace --option eval-max-statements 100000 .#expression

Check option types:

nix eval .#nixosConfigurations.host.options.services.nginx.enable.type.name

Rules

Follow Nix debugging rules from CLAUDE.md. Run nix flake check to validate after changes.