nix-check
检查和验证NixOS配置。在被要求检查、验证、代码检查或验证nix配置、flake或配置文件时使用。
📖 中文导读:检查和验证NixOS配置。在被要求检查、验证、代码检查或验证nix配置、flake或配置文件时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: nix-check description: Check and validate NixOS configuration. Use when asked to check, validate, lint, or verify the nix config, flake, or configuration files.
Nix Configuration Checker
When to Use
Use this skill when the user asks to check, validate, lint, or verify the nix configuration.
Instructions
Run the validation scripts in sequence:
Format Check - Verify code formatting:
./scripts/fmt.sh --checkLint Check - Check for linting issues and dead code:
./scripts/lint.shFlake Check - Validate flake and do a dry-run build:
./scripts/check.sh
Reporting Results
- If all checks pass, report success
- If any check fails, report which check failed and show the relevant error output
- Suggest fixes for common issues (formatting can be auto-fixed with
./scripts/fmt.sh)