nix-setup

Set up reproducible Nix dev environments with devbox or pure flake.nix workflows.

320|3|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/mizchi/skills --skill nix-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-setup
Source: https://github.com/mizchi/skills/tree/main/tooling/nix-setup
Command: npx skills add https://github.com/mizchi/skills --skill nix-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill defines a dual-path approach to reproducible Nix-based development environments, enabling teams to choose between a lightweight devbox workflow or a full pure-flake.nix setup.

Core Features & Use Cases

  • Flexible onboarding for new projects via devbox.json templates and per-language assets.
  • Overlays and build recipes (e.g., buildNpmPackage) for advanced customization.
  • CI integration and direnv support for smooth, reproducible developer experiences.

Quick Start

Copy assets/apm.nix and the per-language template (flake.nix) to your project root, then run nix develop to enter the dev shell.

Frequently Asked Questions about nix-setup

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

FAQPage Schema
How do I set up a reproducible dev environment with Nix?

Set up a reproducible dev environment by copying the provided flake.nix or devbox.json templates to your project root and running nix develop. This ensures a consistent, declarative configuration across your team.

When should I choose devbox over pure flake.nix for my project?

Choose devbox for lightweight onboarding using simple JSON templates, or select pure flake.nix when you need advanced customization like overlays and buildNpmPackage. The Skill enforces a clear choice between these two paths.

Does Nix environment setup work with direnv and CI integration?

Yes, the Nix environment setup supports direnv for automatic shell loading and CI integration. This provides smooth, reproducible developer experiences locally and during automated pipeline builds.

How do I use custom Nix derivations and overlays in a dev environment?

Use the pure flake.nix workflow to define custom derivations and overlays for advanced customization. This path supports specific build recipes like buildNpmPackage to tailor your environment.

What templates are available for setting up a Nix project?

The Skill provides per-language asset templates and an apm.nix file. Copy these to your project root to quickly initialize your Nix-based development environment.