Configuring Claude Code with Nix

Community

Automate Claude Code setup with Nix, effortlessly.

Authorbaleen37
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually configuring Claude Code settings, commands, agents, and skills in a Nix-based system can be complex and prone to errors. This skill automates the management of these configurations, ensuring consistency and ease of updates.

Core Features & Use Cases

  • Declarative Configuration: Manage Claude Code settings (settings.json), project instructions (CLAUDE.md), custom commands, agents, and skills using Nix Home Manager.
  • Instant Updates: Changes to most configuration files (commands, agents, skills) are applied immediately without a full system rebuild.
  • Use Case: Quickly add a new custom /refactor command to Claude Code by simply creating a Markdown file, and have it instantly available across your Nix-managed environments.

Quick Start

Add a new command (instant update)

Create a new Markdown file in the commands/ directory:

modules/shared/config/claude/commands/my-new-command.md

Update settings.json (requires rebuild)

Edit modules/shared/config/claude/settings.json

Then run:

make switch-user

Dependency Matrix

Required Modules

None required

Components

references

💻 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: Configuring Claude Code with Nix
Download link: https://github.com/baleen37/dotfiles/archive/main.zip#configuring-claude-code-with-nix

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