Diagnoses Nix installations by checking installer type, flakes, version, max-jobs, caches, and trusted-users. Provides fixes for each failing check.
Ships in juspay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run these checks to diagnose problems with a Nix installation. For each failing check, report the issue and suggestion to the user.
Identify which installer was used:
# NixOS/nix-installer and Determinate Nix both leave a receipt:
cat /nix/receipt.json 2>/dev/null | python3 -c "import sys,json; print(json.load(sys.stdin).get('version','unknown'))" 2>/dev/null
# On macOS, check launchd service names:
ls /Library/LaunchDaemons/*nix* /Library/LaunchDaemons/*determinate* 2>/dev/null
# On Linux, check systemd:
systemctl list-units '*nix*' '*determinate*' --no-pager 2>/dev/null
# Check for determinate-nixd (Determinate Nix specific):
which determinate-nixd 2>/dev/null
determinate-nixd exists or systems.determinate.* services are present → ⚠️ Determinate Nix detected (proprietary fork). Suggestion: Switch to the official installer or NixOS/nix-installer for a fully open-source Nix. See https://nixos.org/download//nix/receipt.json exists but no determinate-nixd → ℹ️ NixOS/nix-installer (community, formerly DeterminateSystems/nix-installer)org.nixos.nix-daemon (macOS) or nix-daemon.service (Linux) → ℹ️ Official installernix config show 2>/dev/null | grep '^experimental-features'
Value must contain both flakes and nix-command. If missing:
nix --version
Version must be ≥ 2.16.0. If older:
nix config show 2>/dev/null | grep '^max-jobs'
Value must be > 1 (ideally auto). If set to 1:
max-jobs = auto in /etc/nix/nix.conf (Linux) or ~/.config/nix/nix.conf (macOS without nix-darwin). On NixOS use nix.settings.max-jobs = "auto". On nix-darwin use the same option.nix config show 2>/dev/null | grep '^substituters'
Must include https://cache.nixos.org. Also check for project-specific caches defined in:
nixConfig.extra-substituters in the project's flake.nixcache.url in the project's vira.hs (Vira CI config)If any required caches are missing from the user's substituters:
substituters. For Cachix caches run nix run nixpkgs#cachix use <name>.nix config show 2>/dev/null | grep '^trusted-users'
whoami
The current user (or a group they belong to, or *) should appear in trusted-users. If missing:
nix.settings.trusted-users = [ "root" "<user>" ];trusted-users = root <user> to /etc/nix/nix.conf and restart the daemon (sudo pkill nix-daemon)which direnv 2>/dev/null && readlink -f "$(which direnv)"
Direnv should be installed and its resolved path should be inside /nix/store/. If not installed or installed outside Nix:
Only check on Apple Silicon Macs:
sysctl -n sysctl.proc_translated 2>/dev/null
If the value is 1, Nix is running under Rosetta emulation which slows builds:
aarch64-darwin. See https://nixos.asia/en/installwhich brew 2>/dev/null
If Homebrew is installed, flag as ⚠️ — it can interfere with Nix environments (e.g. conflicting library paths, shadowed binaries).
brew list, install equivalents via Nix, then consider removing Homebrew.Check if shell config files are managed by Nix (symlinked into /nix/store):
# For zsh:
ls -la ~/.zshrc ~/.zshenv ~/.zprofile ~/.zlogin ~/.zlogout 2>/dev/null
# For bash:
ls -la ~/.bashrc ~/.bash_profile ~/.profile 2>/dev/null
Any dotfile whose resolved path is not under /nix/store/ is unmanaged — flag it as ⚠️.
Present results as a table with columns: Check, Status (✅/❌/⚠️), Details, and Suggestion (if failing). Mark checks that don't apply to the current OS as skipped.
What SKILL.md sets; muted values are Claude Code's defaults
/juspay:nix-healthfrom juspay
npx claudepluginhub juspay/skills --plugin juspay17 skills in this plugin
/cargo-watchRun cargo-watch in the background for continuous clippy feedback during code editing./nix-bunUse this when building a Bun (bun.lock) project with Nix. Covers bun2nix, the bun.nix dependency workflow, the bun --compile top-level-await pitfall, and a CI drift check./nix-ciUse this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project/nix-for-devUse this when setting up Nix for a development project (devShell + package build) and you care about `nix develop` being fast. Covers the zero-inputs flake.nix + npins + default.nix/shell.nix layout, sub-flakes for non-user-facing Nix, and language-specific recommendations./nix-haskellUse this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration./nix-justfileConventions for writing justfile recipes in Nix-based projects.Other plugins' skills for the same job