python-nix-uv

Set up Python projects with nix flakes, direnv, and uv.

1|Updated Aug 4, 2025
One-click install
npx skills add https://github.com/kazamatzuri/claude-settings --skill python-nix-uv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-nix-uv
Source: https://github.com/kazamatzuri/claude-settings/tree/main/skills/python-nix-uv
Command: npx skills add https://github.com/kazamatzuri/claude-settings --skill python-nix-uv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set up Python projects using nix/direnv with uv for environment management. Use when creating new Python projects, initializing Python environments, or when the user wants automatic Python virtual environment setup with nix flakes.

Core Features & Use Cases

  • Nix-based environment provisioning using flakes for reproducible Python workflows.
  • Direnv integration to automatically activate the correct environment when changing directories.
  • UV-powered virtual environment management to ensure consistent Python versions across machines.

Quick Start

Create a new Python project directory and run the skill to initialize the nix/direnv/uv setup.

Frequently Asked Questions about python-nix-uv

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

FAQPage Schema
How do I set up a Python project using nix flakes and uv?

To set up a Python project using nix flakes and uv, create a new project directory and run the skill to automatically generate a nix-based project structure, configure flake.nix, and create pyproject.toml templates for reproducible environments.

How does direnv integration work with uv for Python virtual environments?

Direnv integration with uv works by automatically activating the correct Python virtual environment and installing the correct Python version when you change directories into the project, ensuring consistent environment management across machines.

Can I use nix flakes to ensure a reproducible Python development environment?

Yes, you can use nix flakes to ensure a reproducible Python development environment by provisioning system-level dependencies and configuring uv to manage consistent Python versions and virtual environments across different machines.

What is the best way to automate Python environment setup with nix and direnv?

The best way to automate Python environment setup with nix and direnv is to use a workflow that generates flake.nix, configures direnv to hook into directory changes, and uses uv to manage the virtual environment and Python version automatically.

Do I need uv to manage virtual environments when using nix flakes for Python?

You need uv to manage virtual environments when using nix flakes for Python because it enforces consistent Python versions and handles virtual environment creation, while nix flakes handle the reproducible provisioning of the broader development environment.

Why does my Python project need a pyproject.toml template when using nix and uv?

Your Python project needs a pyproject.toml template when using nix and uv because it provides the standardized project metadata and dependency definitions that uv uses to install packages and manage the virtual environment correctly.