# Nix Check

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

- Skill: `majiayu000/nix-check` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/nix-check`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/nix-check/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/nix-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:
   ```bash
   ./scripts/fmt.sh --check
   ```

2. **Lint Check** - Check for linting issues and dead code:
   ```bash
   ./scripts/lint.sh
   ```

3. **Flake Check** - Validate flake and do a dry-run build:
   ```bash
   ./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`)

