nixify

Generates a flake.nix devShell and .envrc for a project's detected language and build system.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/jpolog/nix-os --skill nixify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nixify
Source: https://github.com/jpolog/nix-os/tree/main/pi-agent-data/agent/skills/nixify
Command: npx skills add https://github.com/jpolog/nix-os --skill nixify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze a project's language, build system, and dependencies, then generate a flake.nix devShell and .envrc so the project is immediately ready for NixOS development with direnv.

Core Features & Use Cases

  • Detects the primary language and build tools to produce a ready-to-use dev shell.
  • Generates a minimal, deterministic nix dev environment optimized for NixOS with direnv integration.
  • Supports single-language or multi-language projects with appropriate flake configurations.

Quick Start

Generate the flake.nix and .envrc in your project directory, then run direnv allow to activate the environment.

Frequently Asked Questions about nixify

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

FAQPage Schema
How do I generate a Nix flake devShell for an existing project?

To generate a Nix flake devShell, this automation analyzes your project to identify its primary language, build system, and dependencies, then outputs a flake.nix and .envrc file for immediate use.

What is direnv integration for NixOS development?

Direnv integration for NixOS development automatically loads and unloads your flake.nix devShell environment variables when you enter or leave the project directory, requiring a generated .envrc file and the direnv allow command.

Do I need git to set up a Nix flake development environment?

You do not strictly need git to set up a Nix flake development environment, but an optional git repository is recommended because flakes function best within version controlled directories.

Can I configure a Nix dev shell for a multi-language project?

You can configure a Nix dev shell for a multi-language project because the analyzer detects common ecosystems like Rust, Python, Node.js, Go, and C/C++ to produce appropriate multi-language flake configurations.

What prerequisites do I need to automate NixOS project setup?

To automate NixOS project setup, you need nix with flakes enabled and direnv installed on your system, along with an optional git repository to manage the generated flake.nix and .envrc files.

Why does my direnv environment fail to activate after generating a flake.nix?

If your direnv environment fails to activate after generating a flake.nix, ensure you have explicitly run the direnv allow command in your project directory to authorize the newly created .envrc file for automatic loading.