nix-config

Community

Guides for modular NixOS and macOS configs.

AuthorChanningHe
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps teams manage complex multi-platform configurations by separating public configuration logic from sensitive data using a platform-agnostic three-file pattern for NixOS and macOS.

Core Features & Use Cases

  • Three-file pattern: default.nix (platform-agnostic), nixos.nix (Linux-specific), and darwin.nix (macOS-specific) to enable clean, reusable modules.
  • Layered configuration: hosts/common/core, hosts/common/optional, hosts/common/users, and host-specific directories allow scalable inheritance and customization.
  • Separation of concerns: public configuration vs private data via nix-config and nix-secrets, with documentation and quick-start guidance.

Quick Start

Create a new host by scaffolding default.nix along with nixos.nix and/or darwin.nix, and connect them to host specs while storing secrets in nix-secrets/secrets/${hostname}.yaml.

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-config
Download link: https://github.com/ChanningHe/dotfiles/archive/main.zip#nix-config

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.