| name | nix-toolkit |
| description | Nix operational workflows for package diffs, build failures, closure analysis, dependency forensics, flake maintenance, and evaluation performance. Use for diagnosing Nix builds or outputs; use writing-nix for expression and module authoring. |
Nix Toolkit
Router for Nix operational/debugging workflows. For writing or refactoring Nix
modules, expressions, overlays, packages, or flake outputs, use writing-nix.
Route to one mode; load only that reference:
- package-diffing: package-diffing.md
- build-debugging: build-debugging.md
- closure-analysis: closure-analysis.md
- dependency-forensics:
dependency-forensics.md
- flake-maintenance:
flake-maintenance.md
- eval-performance: eval-performance.md
- ifd-remediation: ifd-remediation.md
- activation-verification:
activation-verification.md
- nix-authoring: delegate to
writing-nix
If intent is unclear, ask before proceeding.
NixOS Privilege Wrappers
If sudo resolves outside /run/wrappers/bin, use /run/wrappers/bin/sudo.
Nix store binaries lack setuid privileges. Diagnose with type -a sudo, then
prepend the wrapper directory for that command. Never chmod a store path or
replace the wrapper.
Read scripts.md when a first-pass report or repeatable
measurement can replace manual command assembly.
See operating-rules.md for cross-skill routing
and reporting rules.