nix-check

Check and validate NixOS configuration. Use when asked to check, validate, lint, or verify the nix config, flake, or configuration files.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The nix-check skill is a specialized utility designed to automate the validation, linting, and verification of NixOS configurations and flakes. It streamlines the development workflow by ensuring Nix code adheres to formatting standards, identifying syntax errors or dead code, and performing dry-run builds to catch configuration issues before they affect system stability. This tool is essential for maintaining reliable and reproducible Infrastructure-as-Code (IaC) within the Nix ecosystem.

Use Cases

  • Pre-deployment Verification: Automatically check Nix flakes and configuration files for errors before applying system updates to prevent broken builds.
  • Code Quality Auditing: Run linting scripts to detect dead code, deprecated syntax, and potential logic errors in complex NixOS setups.
  • Automated Formatting: Ensure consistent code style across a repository by identifying and fixing formatting discrepancies in .nix files.
  • Dry-run Build Testing: Validate the integrity of a configuration by simulating a build process, allowing users to catch dependency issues without a full system rebuild.
namenix-check
descriptionCheck and validate NixOS configuration. Use when asked to check,

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:

  1. Format Check - Verify code formatting:

    ./scripts/fmt.sh --check
    
  2. Lint Check - Check for linting issues and dead code:

    ./scripts/lint.sh
    
  3. Flake 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)