nix-performance

Optimize Nix evaluation and store management for performance.

1|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Jylhis/skills --skill nix-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-performance
Source: https://github.com/Jylhis/skills/tree/main/skills/nix-performance
Command: npx skills add https://github.com/Jylhis/skills --skill nix-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nix performance optimization and guidance for evaluating and optimizing nix expressions, reducing evaluation time, and minimizing store bloat.

Core Features & Use Cases

  • Guidance on identifying evaluation bottlenecks, optimizing imports, and reducing IFD (import-from-derivation) blocks.
  • Strategies for closure size analysis, content-addressed derivations, and distributed builds to accelerate workflows.
  • Best practices for build parallelism, Docker image optimization, and store maintenance across local and CI environments.

Quick Start

Apply IFD consolidation to restructure multiple imports into a single unified derivation to reduce evaluation time.

Frequently Asked Questions about nix-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce Nix evaluation time caused by import-from-derivation blocks?

Reduce Nix evaluation time by consolidating multiple IFD imports into a single unified derivation. Restructuring these imports minimizes IFD blocks and significantly speeds up overall evaluation.

What's the best way to analyze and minimize Nix closure size?

Analyze Nix closure size using dedicated profiling strategies and content-addressed derivations. This approach identifies redundant dependencies and minimizes store bloat for leaner deployments.

How can I optimize build parallelism across local and CI environments in Nix?

Optimize Nix build parallelism across local and CI environments by applying distributed builds and best practices. This accelerates workflows by maximizing parallel execution during store management.

Why is my Nix evaluation bottlenecking and how do I profile it?

Profile Nix evaluation bottlenecks by identifying slow imports and optimizing expression evaluation. This process isolates specific performance issues and reduces overall evaluation time.

Can I optimize Docker images built with Nix to reduce their size?

Optimize Docker images built with Nix by applying closure size analysis and store maintenance best practices. This minimizes store bloat and produces smaller, more efficient container images.