nix-infrastructure

Community

Build robust, reproducible Nix-first infrastructure.

Authoraitchwhy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill establishes a "localhost === CI === production" paradigm using Nix, ensuring consistent and reproducible infrastructure across all environments, from local development to cloud deployment. It eliminates environment drift and simplifies operations.

Core Features & Use Cases

  • Port Registry: Centralizes port allocation to prevent conflicts and ensure consistency across all services and environments.
  • process-compose-flake: Provides Nix-native local service orchestration, replacing traditional docker-compose with a declarative approach.
  • nix2container: Generates minimal OCI container images directly from Nix, eliminating Dockerfiles and ensuring tiny, reproducible artifacts.
  • CI/CD & Deployment: Integrates with GitHub Actions, Cachix, and Colmena for efficient, cached builds and multi-host deployments, streamlining your entire release process.
  • Use Case: A team needs to set up a new microservice with a fully reproducible development and deployment pipeline. They can use this skill to define services with process-compose-flake, build container images with nix2container, and configure CI/CD to leverage Cachix for fast builds.

Quick Start

Review the 'flake.nix' and 'flake/process-compose.nix' files to ensure they follow the recommended patterns for Nix-native service orchestration and container image generation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nix-infrastructure
Download link: https://github.com/aitchwhy/dotfiles/archive/main.zip#nix-infrastructure

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository